Webview.height read/write property
Get or set the height of the Webview area. The height starts from 0 (top side of the Webview) and increase to the bottom 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.height = Webview.height - 1
until not win.visible or (Webview.height < 100)