mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-06 04:35:04 +00:00
Bug 1047828 - Don't reserve any space for a non-existing fullscreen button on Mac OS 10.10. r=smichaud
This commit is contained in:
parent
58776f6cfc
commit
a1584c75a9
@ -3059,7 +3059,8 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsPresContext* aPresContext,
|
||||
}
|
||||
|
||||
case NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON: {
|
||||
if ([NativeWindowForFrame(aFrame) respondsToSelector:@selector(toggleFullScreen:)]) {
|
||||
if ([NativeWindowForFrame(aFrame) respondsToSelector:@selector(toggleFullScreen:)] &&
|
||||
!nsCocoaFeatures::OnYosemiteOrLater()) {
|
||||
// This value is hardcoded because it's needed before we can measure the
|
||||
// position and size of the fullscreen button.
|
||||
aResult->SizeTo(16, 17);
|
||||
|
Loading…
Reference in New Issue
Block a user