mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: Check minSize constraints before resizing (backport: 3-0-x) (#15038)
This commit is contained in:
committed by
Jeremy Apthorp
parent
8f743e6fbe
commit
524bb99948
@@ -881,7 +881,7 @@ Disable or enable the window.
|
||||
* `height` Integer
|
||||
* `animate` Boolean (optional) _macOS_
|
||||
|
||||
Resizes the window to `width` and `height`.
|
||||
Resizes the window to `width` and `height`. If `width` or `height` are below any set minimum size constraints the window will snap to its minimum size.
|
||||
|
||||
#### `win.getSize()`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user