Browse Source

fix: set NSResizableWindowMask at init time (#15383)

trop[bot] 6 years ago
parent
commit
436b9a2ee1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      atom/browser/native_window_mac.mm

+ 3 - 0
atom/browser/native_window_mac.mm

@@ -341,6 +341,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.