Panel.height read/write property


Get or set the Panel's height. The height starts from 0 (top side of the Panel) and increase to the bottom direction.

Example

local ui = require "ui" -- create a fixed Panel local win = ui.Window("Panel.height sample", "fixed", 320, 200) -- create a Panel local panel = ui.Panel(win, 0, 0, 100, 100) panel.bgcolor = 0x00a0F0 -- keep increasing Panel width and height async(function() while(true) do panel.height = panel.height + 1 panel.width = panel.width + 1 panel:center() sleep(1) end end) ui.run(win):wait()