Set dialog position and size (:set_frame)
Declaration
dialog_obj = dialog_obj:set_frame(x, y, width, height)
Parameters
- x, y
Integer. Top-left position of the dialog - width, height
Integer. Dialog size. If not set elsewhere, defaults to full screen
Returns
- dialog_obj
Dialog. Returns the dialog itself
Description
Set the dialog's position and size with sharp corners (no rounded corners).
This method works only for dialogs that use the webview engine.
Example
local dlg = dialog()
dlg:set_frame(0, 0, 600, 800)
dlg:show()