Add support for BrowserView autoresizing

This commit is contained in:
Birunthan Mohanathas 2017-04-12 14:40:31 +03:00
parent 638eae1080
commit 06fcf2c19d
9 changed files with 121 additions and 4 deletions

View file

@ -50,6 +50,14 @@ A `Integer` representing the unique ID of the view.
Objects created with `new BrowserWindow` have the following instance methods:
#### `win.setAutoResize(options)` _Experimental_
* `options` Object
* `width`: If `true`, the view's width will grow and shrink together with
the window. `false` by default.
* `height`: If `true`, the view's height will grow and shrink together with
the window. `false` by default.
#### `win.setBounds(bounds)` _Experimental_
* `bounds` [Rectangle](structures/rectangle.md)