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

Issue 2966163004: [cr-action-menu] Use clientWidth for rtl flipping. (Closed)

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

Description

[cr-action-menu] Use clientWidth for rtl flipping. This CL fixes a bug where the action menu would use the entire body's length as the viewport when flipping coordinates in RTL. It also moves the scroll position saving into showAtPosition so that both show methods account for scroll correctly. BUG=734984 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2966163004 Cr-Original-Commit-Position: refs/heads/master@{#485181} Committed: https://chromium.googlesource.com/chromium/src/+/87be8f4c1eaef26b7c6d7ddb2c56d84ef504a232 Review-Url: https://codereview.chromium.org/2966163004 Cr-Commit-Position: refs/heads/master@{#485578} Committed: https://chromium.googlesource.com/chromium/src/+/30fc850ad1f90068d6dcb4733870aa4ebc94cdc6

Patch Set 1 : #

Total comments: 2

Patch Set 2 : clean up tests #

Patch Set 3 : make test use integer values #

Patch Set 4 : fix test on mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -107 lines) Patch
M chrome/test/data/webui/cr_elements/cr_action_menu_test.js View 1 2 3 12 chunks +116 lines, -75 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js View 7 chunks +35 lines, -32 lines 0 comments Download

Messages

Total messages: 40 (32 generated)
calamity
PTAL, thanks!
3 years, 5 months ago (2017-07-06 05:06:06 UTC) #8
dpapad
LGTM with nit. https://codereview.chromium.org/2966163004/diff/40001/chrome/test/data/webui/cr_elements/cr_action_menu_test.js File chrome/test/data/webui/cr_elements/cr_action_menu_test.js (right): https://codereview.chromium.org/2966163004/diff/40001/chrome/test/data/webui/cr_elements/cr_action_menu_test.js#newcode362 chrome/test/data/webui/cr_elements/cr_action_menu_test.js:362: document.body.scrollLeft = 500; The "offscreen scroll ...
3 years, 5 months ago (2017-07-06 22:05:37 UTC) #11
calamity
https://codereview.chromium.org/2966163004/diff/40001/chrome/test/data/webui/cr_elements/cr_action_menu_test.js File chrome/test/data/webui/cr_elements/cr_action_menu_test.js (right): https://codereview.chromium.org/2966163004/diff/40001/chrome/test/data/webui/cr_elements/cr_action_menu_test.js#newcode362 chrome/test/data/webui/cr_elements/cr_action_menu_test.js:362: document.body.scrollLeft = 500; On 2017/07/06 22:05:37, dpapad wrote: > ...
3 years, 5 months ago (2017-07-07 03:18:01 UTC) #12
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/2966163004/60001
3 years, 5 months ago (2017-07-10 02:35:53 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:60001) as https://chromium.googlesource.com/chromium/src/+/87be8f4c1eaef26b7c6d7ddb2c56d84ef504a232
3 years, 5 months ago (2017-07-10 03:41:55 UTC) #22
calamity
A revert of this CL (patchset #2 id:60001) has been created in https://codereview.chromium.org/2980463002/ by calamity@chromium.org. ...
3 years, 5 months ago (2017-07-10 05:14:14 UTC) #23
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/2966163004/100001
3 years, 5 months ago (2017-07-11 08:14:22 UTC) #37
commit-bot: I haz the power
3 years, 5 months ago (2017-07-11 10:30:35 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/30fc850ad1f90068d6dcb4733870...

Powered by Google App Engine
This is Rietveld 408576698