Merge pull request #2389 from atom/resize-mask-flag
Fix a bug calling setResizable multiple times will take no effect on OS X.
This commit is contained in:
commit
666a2233a7
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ void NativeWindowMac::SetResizable(bool resizable) {
|
||||||
[window_ setStyleMask:[window_ styleMask] | NSResizableWindowMask];
|
[window_ setStyleMask:[window_ styleMask] | NSResizableWindowMask];
|
||||||
} else {
|
} else {
|
||||||
[[window_ standardWindowButton:NSWindowZoomButton] setEnabled:NO];
|
[[window_ standardWindowButton:NSWindowZoomButton] setEnabled:NO];
|
||||||
[window_ setStyleMask:[window_ styleMask] ^ NSResizableWindowMask];
|
[window_ setStyleMask:[window_ styleMask] & (~NSResizableWindowMask)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue