feat: flexible autoresize for BrowserViews (#16184)

* feat: flexible autoresize for BrowserViews

* fix: change to static_cast

* Slight format code
This commit is contained in:
Vladimir 2019-01-31 05:07:19 +03:00 committed by Cheng Zhao
parent 927aac306f
commit 49ec7e1582
8 changed files with 115 additions and 25 deletions

View file

@ -83,6 +83,10 @@ Returns `Boolean` - Whether the view is destroyed.
with the window. `false` by default.
* `height` Boolean - If `true`, the view's height will grow and shrink
together with the window. `false` by default.
* `horizontal` Boolean - If `true`, the view's x position and width will grow
and shrink proportionly with the window. `false` by default.
* `vertical` Boolean - If `true`, the view's y position and height will grow
and shrink proportinaly with the window. `false` by default.
#### `view.setBounds(bounds)` _Experimental_