Closed
Bug 656373
Opened 13 years ago
Closed 13 years ago
Turn off Form Assistant zooming, panning and next/prev on tablets
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox6 fixed, fennec6+)
VERIFIED
FIXED
Firefox 6
People
(Reporter: mfinkle, Assigned: vingtetun)
References
Details
Attachments
(1 file, 2 obsolete files)
5.49 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Due to the large screen sizes, we do not need (or want) to zoom/pan to form fields. We also do not need the next/prev buttons to appear. Tablet keyboards have a "Tab" button to make moving between fields easier. We still want the combobox UI and the form suggestion bubble. We should try to trigger this based on screen size. We are using >800 px in a different tablet UI bug.
Reporter | ||
Updated•13 years ago
|
Summary: Turn off Form Assistant zooming. panning and next/prev on tablets → Turn off Form Assistant zooming, panning and next/prev on tablets
Assignee | ||
Comment 1•13 years ago
|
||
(In reply to comment #0) > We still want the combobox UI and the form suggestion bubble. If you want the form suggestion bubble this is another good reason to move it out of FormHelperUI (bug 648026)
Depends on: 648026
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #532162 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 3•13 years ago
|
||
Oups, left some debug code (the previous version was always disabled)
Attachment #532162 -
Attachment is obsolete: true
Attachment #532162 -
Flags: review?(mark.finkle)
Attachment #532163 -
Flags: review?(mark.finkle)
Reporter | ||
Comment 4•13 years ago
|
||
Comment on attachment 532163 [details] [diff] [review] Patch >+ // Dynamically enabled/disabled the form helper if needed >+ let mode = Services.prefs.getIntPref("formhelper.mode"); >+ let state = (mode == 2) ? (window.innerWidth <= 480) : !!mode; I think we want to use a physical length. We are using 124 mm in a different place as a tablet trigger. See http://mxr.mozilla.org/mozilla-central/source/mobile/chrome/content/input.js#571 for getting the DPI if my math is right, this should work: let dpmm = DPI / 25.4; let state = (mode == 2 ? ((window.innerWidth / dpmm) <= 124) : !!mode); >+ Services.prefs.setBoolPref("formhelper.enabled", state); Instead of using "formhelper.enabled" can we just move this into the "enabled" getter? and make it memoized > case "FormAssist:Hide": >- this.enabled ? this.hide() >- : SelectHelperUI.hide(); >+ if (this.enabled) >+ this.hide(); >+ else { >+ SelectHelperUI.hide(); >+ ContentPopupHelper.popup = null; >+ } Use { } around the "if" part r- for the nits
Attachment #532163 -
Flags: review?(mark.finkle) → review-
Assignee | ||
Comment 5•13 years ago
|
||
(In reply to comment #4) > Instead of using "formhelper.enabled" can we just move this into the > "enabled" getter? and make it memoized forms.js use formhelper.enabled too but can't access window.innerWidth (since it use a fake viewport)
Attachment #532163 -
Attachment is obsolete: true
Attachment #532610 -
Flags: review?(mark.finkle)
Reporter | ||
Comment 6•13 years ago
|
||
Comment on attachment 532610 [details] [diff] [review] Patch v0.2 >diff --git a/mobile/chrome/content/Util.js b/mobile/chrome/content/Util.js > return (!appInfo || appInfo.getService(Ci.nsIXULRuntime).processType == Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT); > }, > >+ isTabletSized: function isTablet() { I kinda prefer "isTablet" >diff --git a/mobile/chrome/content/common-ui.js b/mobile/chrome/content/common-ui.js >+ // Dynamically enabled/disabled the form helper if needed depending on >+ // the size of the screen >+ let mode = Services.prefs.getIntPref("formhelper.mode"); >+ >+ // See the tablet_panel_minwidth from mobile/themes/core/defines.inc >+ let tablet_panel_minwidth = 124; >+ let dpmm = Util.getWindowUtils(window).displayDPI / 25.4; You can remove this code, right? You're using Utils.isTablet() r+ with the nits fixed We could use a test for this. Running it on phones would at least let us know the FormHelper is active for small screens.
Attachment #532610 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 7•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/a6391aea48e5
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
Can someone having a tablet, please, verify this ?
Comment 9•13 years ago
|
||
Verified Ideos s7 - Mozilla/5.0 (Android; Linux armv7l; rv:6.0a1) Gecko/20110523 Firefox/6.0a1 Fennec/6.0a1 ID:20110523042031
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•13 years ago
|
status-firefox6:
--- → fixed
Updated•13 years ago
|
Target Milestone: --- → Firefox 6
You need to log in
before you can comment on or make changes to this bug.
Description
•