self:set_size
Client
Sets the size of the webview
Syntax
local status = self:set_size(
size
)Parameters
| Type | Name | Description |
|---|---|---|
vector2 | size | Size to apply to the webview, as {width, height} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local wv = webview.create()
-- Set webview to 800x600
wv:set_size({800, 600})