From 9ea33d491cb1d5f54268e0fbdd4a05d96bccaad8 Mon Sep 17 00:00:00 2001 From: "hirono@chromium.org" Date: Fri, 16 May 2014 08:09:15 +0000 Subject: Files.app: Force to update the gear menu position when the menu opens. After maximizing/restoring the app widnow, the position of gear menu may not be updated due to crbug.com/374093. This CL adds a workaround for the bug, which forces to update the gear menu position. BUG=372380 TEST=manually R=fukino@chromium.org, yoshiki@chromium.org Review URL: https://codereview.chromium.org/291583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270963 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/file_manager/file_manager/foreground/js/file_manager.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui/file_manager') 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 4084921..8ded73b 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 = ''; }; /** -- cgit v1.1