self:get_size

Client

Retrieves the current size of the webview


Syntax

local size = self:get_size()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector2sizeSize of the webview as {width, height}

Examples

Get the size of a webview
local wv = webview.create()
local size = wv:get_size()

engine.print("info", "Webview size:", size[1], size[2])

On this page