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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 291583002: Files.app: Force to update the gear menu position when the menu opens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 4084921f057e28a89a8181eacc040734a06717d9..8ded73bf89206f26aed4b1d81feee99aef33e18e 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -533,6 +533,15 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
this.commandHandler.updateAvailability();
this.document_.getElementById('drive-separator').hidden =
!this.shouldShowDriveSettings();
+
+ // Force to update the gear menu position.
+ // TODO(hirono): Remove the workaround for the crbug.com/374093 after fixing
+ // it.
+ var gearMenu = this.document_.querySelector('#gear-menu');
+ gearMenu.style.left = '';
+ gearMenu.style.right = '';
+ gearMenu.style.top = '';
+ gearMenu.style.bottom = '';
};
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698