summaryrefslogtreecommitdiffstats
path: root/ui/file_manager
diff options
context:
space:
mode:
authorhirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 08:09:15 +0000
committerhirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 08:09:15 +0000
commit9ea33d491cb1d5f54268e0fbdd4a05d96bccaad8 (patch)
treecf9e6318b748d19ccd7176f37e2a5a5c0a702b50 /ui/file_manager
parent003f646722233c49f4fa7c5d8bb313ae956a2c2a (diff)
downloadchromium_src-9ea33d491cb1d5f54268e0fbdd4a05d96bccaad8.zip
chromium_src-9ea33d491cb1d5f54268e0fbdd4a05d96bccaad8.tar.gz
chromium_src-9ea33d491cb1d5f54268e0fbdd4a05d96bccaad8.tar.bz2
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
Diffstat (limited to 'ui/file_manager')
-rw-r--r--ui/file_manager/file_manager/foreground/js/file_manager.js9
1 files changed, 9 insertions, 0 deletions
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 = '';
};
/**