Webview.width read/write property
Get or set the Webview area width. The width starts from 0 (left side of the Webview) and increases to the right direction.
Example
local ui = require "ui"
require "webview"
-- create a simple window
local win = ui.Window("Webview.x sample", 600, 400)
local Webview = ui.Webview(win, { url = "https://www.google.com/?mobile" })
Webview.align = "all"
-- shows the window
win:show()
-- update user interface and increase Webview horizontal position
repeat
ui.update()
Webview.width = Webview.width - 1
until not win.visible or (Webview.width < 200)