fix: set NSResizableWindowMask at init time (#15384)

This commit is contained in:
trop[bot] 2018-10-25 15:30:16 +09:00 committed by Cheng Zhao
parent dcdbc87ef4
commit 88b1f7d9c8

View file

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