Merge pull request #5263 from miniak/mac-fix-maximize

Fix BrowserWindow.maximize/unmaximize on Mac
This commit is contained in:
Cheng Zhao 2016-04-24 13:58:36 +09:00
commit a8f08e1fab

View file

@ -602,10 +602,16 @@ bool NativeWindowMac::IsVisible() {
}
void NativeWindowMac::Maximize() {
if (IsMaximized())
return;
[window_ zoom:nil];
}
void NativeWindowMac::Unmaximize() {
if (!IsMaximized())
return;
[window_ zoom:nil];
}