Chromium Code Reviews| Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| index 01821dbde4fab213a873faae0524ee25cd4fe245..a9f0259d25e2c828972b6c39fb575da9d5347edb 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| @@ -261,8 +261,8 @@ willPositionSheet:(NSWindow*)sheet |
| // The tabContentArea view starts below the omnibox. |
| CGFloat minToolbarHeight = 0; |
| if ([self hasToolbar]) { |
| - minToolbarHeight = [toolbarController_ |
| - desiredHeightForCompression:bookmarks::kBookmarkBarOverlap]; |
| + // -1 to account for the toolbar separator. |
| + minToolbarHeight = [toolbarController_ desiredHeightForCompression:0] - 1; |
|
Nico
2013/05/16 22:17:57
Why was this not needed before? This code is indep
sail
2013/05/16 22:35:30
Previously the overlay never overlapped the toolba
Nico
2013/05/16 22:55:58
Should the function just return the right value th
sail
2013/05/16 23:27:06
Only the overlay passes a constant value here. Tha
Nico
2013/05/22 22:49:21
I still don't get it. This code is laying out the
sail
2013/05/22 23:51:11
Right.
Robert Sesek
2013/05/24 18:36:23
Why is this not desiredHeightForCompresssion:1 ?
sail
2013/05/24 19:58:02
Good idea, done.
|
| } |
| contentAreaTop = toolbarTopY - minToolbarHeight; |
| // This is the space between the bottom of the omnibox and the bottom of the |