зеркало из https://github.com/mozilla/pjs.git
Bug 403174 - Attach sheets under the toolbar, not directly under the titlebar. r=josh
--HG-- extra : rebase_source : a4bdfa97c723fa2e6191719842a85f64db9a81cc
This commit is contained in:
Родитель
b534016711
Коммит
a73ea22139
|
@ -1865,6 +1865,11 @@ static const NSString* kStateInactiveTitlebarColorKey = @"inactiveTitlebarColor"
|
||||||
// we respond to it just in case.
|
// we respond to it just in case.
|
||||||
if ([self respondsToSelector:@selector(setBottomCornerRounded:)])
|
if ([self respondsToSelector:@selector(setBottomCornerRounded:)])
|
||||||
[self setBottomCornerRounded:NO];
|
[self setBottomCornerRounded:NO];
|
||||||
|
|
||||||
|
#ifdef NS_LEOPARD_AND_LATER
|
||||||
|
[self setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];
|
||||||
|
[self setContentBorderThickness:0.0f forEdge:NSMaxYEdge];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
|
|
||||||
|
@ -1909,6 +1914,10 @@ static const NSString* kStateInactiveTitlebarColorKey = @"inactiveTitlebarColor"
|
||||||
return;
|
return;
|
||||||
mUnifiedToolbarHeight = aToolbarHeight;
|
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
|
// Since this function is only called inside painting, the repaint needs to
|
||||||
// be synchronous.
|
// be synchronous.
|
||||||
[self setTitlebarNeedsDisplayInRect:[self titlebarRect] sync:YES];
|
[self setTitlebarNeedsDisplayInRect:[self titlebarRect] sync:YES];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче