Webview
self:get_size
Client
Retrieves the current size of the webview
Syntax
local size = self:get_size()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector2 | size | Size of the webview as {x, y} |
Examples
local browser = webview.create()
local size = browser:get_size()
engine.print("info", "Webview size:", size[1], size[2])