зеркало из https://github.com/mozilla/pjs.git
Bug 403174 - [10.5] Make sheets attach to the toolbar, not to the titlebar. r=josh sr=roc
This commit is contained in:
Родитель
dbb6829b78
Коммит
a4458a5627
|
@ -1736,6 +1736,12 @@ NS_IMETHODIMP nsCocoaWindow::EndSecureKeyboardInput()
|
|||
// we respond to it just in case.
|
||||
if ([self respondsToSelector:@selector(setBottomCornerRounded:)])
|
||||
[self setBottomCornerRounded:NO];
|
||||
|
||||
// This method only exists on Leopard.
|
||||
if ([self respondsToSelector:@selector(setAutorecalculatesContentBorderThickness:forEdge:)]) {
|
||||
[self setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];
|
||||
[self setContentBorderThickness:0.0f forEdge:NSMaxYEdge];
|
||||
}
|
||||
}
|
||||
return self;
|
||||
|
||||
|
@ -1797,6 +1803,8 @@ NS_IMETHODIMP nsCocoaWindow::EndSecureKeyboardInput()
|
|||
if (mUnifiedToolbarHeight == aToolbarHeight)
|
||||
return;
|
||||
mUnifiedToolbarHeight = aToolbarHeight;
|
||||
if ([self respondsToSelector:@selector(setContentBorderThickness:forEdge:)])
|
||||
[self setContentBorderThickness:aToolbarHeight forEdge:NSMaxYEdge];
|
||||
[self redrawTitlebar];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче