Panel:center() method
Centers the Panel on the parent widget.
Return value
This function returns no value.Example
local ui = require "ui"
-- create a fixed Panel
local win = ui.Window("Panel:center() sample", "fixed", 320, 200)
-- create a Panel
local panel = ui.Panel(win, 0, 0, 100, 100)
panel.border = true
panel:center()
ui.run(win):wait()