Fix: browser window will be resiable when calling window.setResizable(false) twice.

This commit is contained in:
Haojian Wu 2015-07-31 09:57:08 +08:00
parent 2eaaad610d
commit c69002b0dd

View file

@ -589,7 +589,7 @@ void NativeWindowMac::SetResizable(bool resizable) {
[window_ setStyleMask:[window_ styleMask] | NSResizableWindowMask];
} else {
[[window_ standardWindowButton:NSWindowZoomButton] setEnabled:NO];
[window_ setStyleMask:[window_ styleMask] ^ NSResizableWindowMask];
[window_ setStyleMask:[window_ styleMask] & (~NSResizableWindowMask)];
}
}