Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Issue 739413002: Fixes a minor rearrangement of rectangles for display settings. (Closed)

Created:
6 years, 1 month ago by Jun Mukai
Modified:
6 years, 1 month ago
Reviewers:
xiyuan, oshima
CC:
chromium-reviews, dbeam+watch-options_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixes a minor rearrangement of rectangles for display settings. Previously the display rectangles are placed by display object's x and y, with scaling. However, due to scaling the value and flooring the scaled result, there could be 1px gap from the expected position, therefore just clicking may cause sending the display layout change which causes fade-out and fade-in. This 1px gap has been there, it's tiny, but it's noticeable. Therefore this CL rewrites the layouting of display rectangles as follows: - first, place the primary display - then look up the secondary display which is sticking to the primary display This way there cannot be any gaps, therefore doesn't cause any weird fade-outs. BUG=386401 R=xiyuan@chromium.org, oshima@chromium.org TEST=manually Committed: https://crrev.com/5b0e1a0903ac26a85ceb51bb79b5e4c77d1ff488 Cr-Commit-Position: refs/heads/master@{#304974}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -46 lines) Patch
M chrome/browser/resources/options/chromeos/display_options.js View 1 5 chunks +93 lines, -46 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Jun Mukai
6 years, 1 month ago (2014-11-20 00:28:14 UTC) #1
xiyuan
lgtm https://codereview.chromium.org/739413002/diff/1/chrome/browser/resources/options/chromeos/display_options.js File chrome/browser/resources/options/chromeos/display_options.js (right): https://codereview.chromium.org/739413002/diff/1/chrome/browser/resources/options/chromeos/display_options.js#newcode788 chrome/browser/resources/options/chromeos/display_options.js:788: display.div.style.width = nit: display.div is |div|, why not ...
6 years, 1 month ago (2014-11-20 02:21:31 UTC) #2
Jun Mukai
https://codereview.chromium.org/739413002/diff/1/chrome/browser/resources/options/chromeos/display_options.js File chrome/browser/resources/options/chromeos/display_options.js (right): https://codereview.chromium.org/739413002/diff/1/chrome/browser/resources/options/chromeos/display_options.js#newcode788 chrome/browser/resources/options/chromeos/display_options.js:788: display.div.style.width = On 2014/11/20 02:21:31, xiyuan wrote: > nit: ...
6 years, 1 month ago (2014-11-20 02:31:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/739413002/20001
6 years, 1 month ago (2014-11-20 02:35:23 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-20 04:33:08 UTC) #6
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 04:33:58 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5b0e1a0903ac26a85ceb51bb79b5e4c77d1ff488
Cr-Commit-Position: refs/heads/master@{#304974}

Powered by Google App Engine
This is Rietveld 408576698