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

Issue 2614663011: MD WebUI: Fix incorrect positioning of action menu after window resize (Closed)

Created:
3 years, 11 months ago by tsergeant
Modified:
3 years, 11 months ago
Reviewers:
dpapad
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, dbeam+watch-elements_chromium.org, michaelpg+watch-elements_chromium.org, oshima+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD WebUI: Fix incorrect positioning of action menu after window resize Showing the menu, resizing the browser window horizontally and then showing the menu a second time could result in incorrectly positioning the window, as position values from the first instance would affect layout of the second instance. This fixes the issue by clearing position alues before reshowing the menu. BUG=667198 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2614663011 Cr-Commit-Position: refs/heads/master@{#443429} Committed: https://chromium.googlesource.com/chromium/src/+/b1caf20ec92bdf673b7b86adfca7e5121914551a

Patch Set 1 #

Patch Set 2 : forgot vulcanize lol whoops #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M chrome/browser/resources/md_history/lazy_load.crisper.js View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js View 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 16 (11 generated)
tsergeant
PTAL! I couldn't think of anyway to write a regression test for this -- let ...
3 years, 11 months ago (2017-01-06 05:23:53 UTC) #7
dpapad
https://codereview.chromium.org/2614663011/diff/20001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js File ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js (right): https://codereview.chromium.org/2614663011/diff/20001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js#newcode140 ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js:140: var rect = this.anchorElement_.getBoundingClientRect(); I don't fully understand this ...
3 years, 11 months ago (2017-01-06 16:34:49 UTC) #10
dpapad
LGTM https://codereview.chromium.org/2614663011/diff/20001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js File ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js (right): https://codereview.chromium.org/2614663011/diff/20001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js#newcode140 ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js:140: var rect = this.anchorElement_.getBoundingClientRect(); On 2017/01/06 at 16:34:49, ...
3 years, 11 months ago (2017-01-12 18:52:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2614663011/20001
3 years, 11 months ago (2017-01-12 22:58:01 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 01:21:33 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b1caf20ec92bdf673b7b86adfca7...

Powered by Google App Engine
This is Rietveld 408576698