fix: set NSResizableWindowMask at init time (#15106)

This commit is contained in:
Andy Dill 2018-10-24 18:34:11 -07:00 committed by Cheng Zhao
parent 9086b8067b
commit 7a23980f4b

View file

@ -341,6 +341,9 @@ NativeWindowMac::NativeWindowMac(const mate::Dictionary& options,
if (!useStandardWindow || transparent() || !has_frame()) { if (!useStandardWindow || transparent() || !has_frame()) {
styleMask |= NSTexturedBackgroundWindowMask; styleMask |= NSTexturedBackgroundWindowMask;
} }
if (resizable_) {
styleMask |= NSResizableWindowMask;
}
// Create views::Widget and assign window_ with it. // Create views::Widget and assign window_ with it.
// TODO(zcbenz): Get rid of the window_ in future. // TODO(zcbenz): Get rid of the window_ in future.