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

Unified Diff: ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js

Issue 2614663011: MD WebUI: Fix incorrect positioning of action menu after window resize (Closed)
Patch Set: forgot vulcanize lol whoops Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_history/lazy_load.crisper.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
diff --git a/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js b/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
index ba7728b168f7fa8aae778d703142d48e8f4643dd..24e54ba11419875e6fd2b8cfb423ebf602f8aed7 100644
--- a/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
+++ b/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js
@@ -130,6 +130,11 @@ Polymer({
}.bind(this);
window.addEventListener('resize', this.onWindowResize_);
+ // Reset position to prevent previous values from affecting layout.
+ this.style.left = '';
+ this.style.right = '';
+ this.style.top = '';
+
this.showModal();
var rect = this.anchorElement_.getBoundingClientRect();
dpapad 2017/01/06 16:34:49 I don't fully understand this fix. Per my own debu
dpapad 2017/01/12 18:52:54 Per explanation at https://bugs.chromium.org/p/chr
« no previous file with comments | « chrome/browser/resources/md_history/lazy_load.crisper.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698