diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/browser_window_controller.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index 99ef336..b8236e4 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -1155,8 +1155,11 @@ willPositionSheet:(NSWindow*)sheet - (NSRect)window:(NSWindow*)window willPositionSheet:(NSWindow*)sheet usingRect:(NSRect)defaultSheetRect { - NSRect windowFrame = [window frame]; - defaultSheetRect.origin.y = windowFrame.size.height - 10; + // Any sheet should come from right above the visible content area. + NSRect toolbarFrame = [[toolbarController_ view] frame]; + NSRect infobarFrame = [[infoBarContainerController_ view] frame]; + defaultSheetRect.origin.y = toolbarFrame.origin.y - infobarFrame.size.height; + return defaultSheetRect; } |