From f6a620926bf759d032ff46acd1705af3c6ad8a96 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Fri, 13 Nov 2009 23:59:38 +0100 Subject: [PATCH] Bug 403174 - Attach sheets under the toolbar, not directly under the titlebar. r=josh --HG-- extra : rebase_source : a4bdfa97c723fa2e6191719842a85f64db9a81cc --- widget/src/cocoa/nsCocoaWindow.mm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/widget/src/cocoa/nsCocoaWindow.mm b/widget/src/cocoa/nsCocoaWindow.mm index 4936bcf39687..c0a134a699c1 100644 --- a/widget/src/cocoa/nsCocoaWindow.mm +++ b/widget/src/cocoa/nsCocoaWindow.mm @@ -1865,6 +1865,11 @@ static const NSString* kStateInactiveTitlebarColorKey = @"inactiveTitlebarColor" // we respond to it just in case. if ([self respondsToSelector:@selector(setBottomCornerRounded:)]) [self setBottomCornerRounded:NO]; + +#ifdef NS_LEOPARD_AND_LATER + [self setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge]; + [self setContentBorderThickness:0.0f forEdge:NSMaxYEdge]; +#endif } return self; @@ -1909,6 +1914,10 @@ static const NSString* kStateInactiveTitlebarColorKey = @"inactiveTitlebarColor" return; mUnifiedToolbarHeight = aToolbarHeight; +#ifdef NS_LEOPARD_AND_LATER + [self setContentBorderThickness:aToolbarHeight forEdge:NSMaxYEdge]; +#endif + // Since this function is only called inside painting, the repaint needs to // be synchronous. [self setTitlebarNeedsDisplayInRect:[self titlebarRect] sync:YES];