Webview.y read/write property


Get or set the Webview vertical position. The vertical position start from 0 (top side of the parent widget) and increase to the bottom side of the parent widget.

Example

local ui = require "ui" require "webview" -- create a simple window local win = ui.Window("Webview.x sample", 500, 400) local Webview = ui.Webview(win, "https://www.google.com/?mobile", 25, 0, 450, 300) -- shows the window win:show() -- update user interface and increase Webview horizontal position repeat ui.update() Webview.y = Webview.y + 1 until not win.visible or (Webview.y > 400)