Closed
Bug 869933
Opened 11 years ago
Closed 11 years ago
The zoom control should show current zoom level
Categories
(Firefox :: Toolbars and Customization, enhancement)
Firefox
Toolbars and Customization
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: u428464, Assigned: mikedeboer)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
mikedeboer
:
review+
|
Details | Diff | Splinter Review |
The reset button of Australis zoom controls (zoom out/reset/zoom in) currently always shows 100%. It would be more useful to have it indicate the current zoom level (especially for casual users). I can say taking into account what I've read on forums that it is the expected behavior (FWIW Google Chrome does it like that).
Resetting zoom could still be the button's default action or it should become only an indicator. UX feedback needed on this.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mdeboer
Assignee | ||
Updated•11 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #748789 -
Flags: review?(jaws)
Comment 2•11 years ago
|
||
Comment on attachment 748789 [details] [diff] [review]
Adjust zoom reset button label whilst zooming in/out
Review of attachment 748789 [details] [diff] [review]:
-----------------------------------------------------------------
This patch doesn't work for synthetic documents (standalone images and standalone videos). You can test it with http://video.webmfiles.org/big-buck-bunny_trailer.webm.
This is because we don't store the zoom setting for synthetic documents, and the code in browser-fullZoom.js short-circuits before notifying observers in the case of .mozSyntheticDocument.
::: browser/locales/en-US/chrome/browser/browser.properties
@@ +457,5 @@
> slowStartup.disableNotificationButton.label = Don't Tell Me Again
> slowStartup.disableNotificationButton.accesskey = A
> +
> +# LOCALIZATION NOTE(zoomReset.label): %S is the current zoom level.
> +zoomReset.label = %S%
This needs to have two percentage characters to show a percentage sign. See https://developer.mozilla.org/en-US/docs/XUL/Tutorial/Property_Files#Text_Formatting for more details.
Attachment #748789 -
Flags: review?(jaws) → review-
Assignee | ||
Comment 3•11 years ago
|
||
fire events early and properly escape '%'
Attachment #748789 -
Attachment is obsolete: true
Attachment #748864 -
Flags: review?(jaws)
Comment 4•11 years ago
|
||
Comment on attachment 748864 [details] [diff] [review]
Adjust zoom reset button label whilst zooming in/out
Review of attachment 748864 [details] [diff] [review]:
-----------------------------------------------------------------
Everything looks good except we should investigate why we need all the .init() calls in browser-fullZoom.js. I sure hope not all of those are necessary :)
Attachment #748864 -
Flags: review?(jaws)
Assignee | ||
Comment 5•11 years ago
|
||
Removed all the init() calls and introduced a less disruptive change: call `FullZoom.init()` BEFORE `Panel().init()` in browser.js.
Attachment #748864 -
Attachment is obsolete: true
Attachment #749214 -
Flags: review?(jaws)
Comment 6•11 years ago
|
||
Comment on attachment 749214 [details] [diff] [review]
Adjust zoom reset button label whilst zooming in/out
Review of attachment 749214 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/customizableui/content/panelUI.inc.xul
@@ +29,5 @@
> noautoclose="true" label="&fullZoomReduceCmd.label;"
> command="cmd_fullZoomReduce"
> tooltiptext="&zoomOutButton.tooltip;"/>
> <toolbarbutton id="PanelUI-zoomReset-btn" flex="1"
> + noautoclose="true" label=""
This label attribute can be removed here.
Attachment #749214 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 7•11 years ago
|
||
removed label. Carrying over r=jaws
Attachment #749214 -
Attachment is obsolete: true
Attachment #749343 -
Flags: review+
Comment 8•11 years ago
|
||
Whiteboard: [fixed-in-ux]
Updated•11 years ago
|
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-ux]
Target Milestone: --- → Firefox 28
You need to log in
before you can comment on or make changes to this bug.
Description
•