Vital.sandbox
Webview

self:set_size

Client

Sets the size of the webview


Syntax

local status = self:set_size(size)

Parameters

TypeNameDescription
vector2sizeSize to apply to the webview, as {x, y}

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set the size of a webview
local browser = webview.create()

--Set webview to 800x600
browser:set_size({800, 600})

On this page