docs: note how to clear an aspect ratio (#37074)

This commit is contained in:
Shelley Vohr 2023-01-31 21:36:09 +01:00 committed by GitHub
parent 01b4e3b521
commit 730a07ad62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1036,6 +1036,8 @@ height areas you have within the overall content view.
The aspect ratio is not respected when window is resized programmatically with
APIs like `win.setSize`.
To reset an aspect ratio, pass 0 as the `aspectRatio` value: `win.setAspectRatio(0)`.
#### `win.setBackgroundColor(backgroundColor)`
* `backgroundColor` string - Color in Hex, RGB, RGBA, HSL, HSLA or named CSS color format. The alpha channel is optional for the hex type.