New issue
Advanced search Search tips

Issue 655742 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 614588



Sign in to add a comment

MD Settings: page zoom is wonky (ghost zoom levels cuz rounding, not observing changes, etc.)

Project Member Reported by dpa...@chromium.org, Oct 13 2016

Issue description

In the old Options, when the user sets the value of 33% in the dropdown, we were actually setting the zoom to 33.333333. This is not the case in the new settings
(see comparison at [1] and [2]), where we only set the zoom percentage to integer values, and have also designed the chrome.setttingPrivate.setDefaultZoomPercent to accept integers only, see [3].

Preserving old Options requires changes in chrome.settingsPrivate.setDefaultZoompPercent API itself
(needs to allow setting a non-integer value) as well as adding a way to dynamically populate the zoom dropdown values
instead of hardcoding them, similar to https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/options/browser_options_handler.cc?l=2068.

[1] http://imgur.com/a/0Vxjj
[2] https://cs.chromium.org/chromium/src/chrome/browser/resources/settings/appearance_page/appearance_page.js?l=81-98
[3] https://cs.chromium.org/chromium/src/chrome/browser/extensions/api/settings_private/settings_private_delegate.cc?dr&q=settings_private_delegate.cc&l=69
 

Comment 1 by dbeam@chromium.org, Oct 14 2016

Blocking: 614588
Labels: -Pri-2 Pri-3
lower prio dev blocker

Comment 2 by dbeam@chromium.org, Oct 15 2016

Cc: -dbeam@chromium.org dpa...@chromium.org
Owner: dbeam@chromium.org
Status: Started (was: Untriaged)

Comment 3 by dbeam@chromium.org, Oct 15 2016

Labels: -Pri-3 Pri-2
Summary: MD Settings: page zoom is wonky (ghost zoom levels cuz rounding, not observing changes, etc.) (was: MD Settings: Can't set zoom to non-integer values.)

Comment 5 by dbeam@chromium.org, Oct 15 2016

Status: Fixed (was: Started)

Sign in to add a comment