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