Merge pull request #5263 from miniak/mac-fix-maximize
Fix BrowserWindow.maximize/unmaximize on Mac
This commit is contained in:
commit
a8f08e1fab
1 changed files with 6 additions and 0 deletions
|
@ -602,10 +602,16 @@ bool NativeWindowMac::IsVisible() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowMac::Maximize() {
|
void NativeWindowMac::Maximize() {
|
||||||
|
if (IsMaximized())
|
||||||
|
return;
|
||||||
|
|
||||||
[window_ zoom:nil];
|
[window_ zoom:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowMac::Unmaximize() {
|
void NativeWindowMac::Unmaximize() {
|
||||||
|
if (!IsMaximized())
|
||||||
|
return;
|
||||||
|
|
||||||
[window_ zoom:nil];
|
[window_ zoom:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue