Commit 9ea33d49 authored by hirono@chromium.org's avatar hirono@chromium.org

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
parent 003f6467
......@@ -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 = '';
};
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment