summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/tab_window_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/tab_window_controller.mm')
-rw-r--r--chrome/browser/cocoa/tab_window_controller.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/tab_window_controller.mm b/chrome/browser/cocoa/tab_window_controller.mm
index 00d9d0e..c1701f1 100644
--- a/chrome/browser/cocoa/tab_window_controller.mm
+++ b/chrome/browser/cocoa/tab_window_controller.mm
@@ -65,9 +65,10 @@
// view hierarchy as a sibling of the content view so it can overlap with the
// window frame.
- (void)addTopTabStripToWindow {
+ NSRect contentFrame = [tabContentArea_ frame];
NSRect tabFrame =
- NSMakeRect(0, NSMaxY(tabFrame),
- NSWidth([tabContentArea_ frame]),
+ NSMakeRect(0, NSMaxY(contentFrame),
+ NSWidth(contentFrame),
NSHeight([topTabStripView_ frame]));
[topTabStripView_ setFrame:tabFrame];
NSView* contentParent = [[[self window] contentView] superview];