Bug 403174 - [10.5] Make sheets attach to the toolbar, not to the titlebar. r=josh sr=roc

This commit is contained in:
Markus Stange 2008-09-19 19:17:57 +02:00
Родитель dbb6829b78
Коммит a4458a5627
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

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