Type Event Revision Current Public Release (2017.3068) Keywords resize
A resize event occurs when the width or height of the app's view has been changed. This event should be used to
The following situations can trigger a resize event:
The app's orientation has changed from portrait to landscape or vice-versa, typically causing the content width and height to be swapped. This only occurs for apps that support both portrait and landscape orientations.
Showing or hiding the status bar on some Android tablets running Android OS 3.0 or higher, such as the Kindle Fire HD. This can cause the height of the app's view to be decreased or increased in size.
Resize event listeners can only be set up via the Runtime object.
-- Called when the app's view has been resized local function onResize( event ) -- re-layout the app's contents here end -- Add the "resize" event listener Runtime:addEventListener( "resize", onResize )