mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 880124 - Make -moz-mac-fullscreen-button 0px wide on 10.6, which doesn't have a fullscreen button. r=smichaud
This commit is contained in:
parent
3debe1ee2d
commit
f28098175a
@ -2766,9 +2766,11 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsRenderingContext* aContext,
|
||||
}
|
||||
|
||||
case NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON: {
|
||||
// This value is hardcoded because it's needed before we can measure the
|
||||
// position and size of the fullscreen button.
|
||||
aResult->SizeTo(20, 0);
|
||||
if ([NativeWindowForFrame(aFrame) respondsToSelector:@selector(toggleFullScreen:)]) {
|
||||
// This value is hardcoded because it's needed before we can measure the
|
||||
// position and size of the fullscreen button.
|
||||
aResult->SizeTo(20, 0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user