fix: set NSResizableWindowMask at init time (#15106)
This commit is contained in:
parent
9086b8067b
commit
7a23980f4b
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue