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];