changeLayoutOrientation

Typecommand
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
changeLayoutOrientation <pLongId>,<pNewOrientation>
Associationscom.livecode.library.responsivelayout
Summary

Change the orientation of the current card layout.

Parameters
NameTypeDescription
pLongId

The long id of an object on the stack that you want to change the orientation.

pNewOrientation

This parameter supports the following values portrait or landscape.

Example
changeLayoutEnvironment the long id of target, "portrait"
changeLayoutEnvironment the long id of this card, "landscape"
Description

Use the changeLayoutOrientation command to change the orientation of the current card layout. This command will only change the orientation if the environment is not desktop. If you are on a mobile device, it will change the orientation of the entire interface.

In the IDE, what this command will do is invert the stack size. Putting the smallest side as width and the largest as height, for portrait orientation. Doing the opposite of the latter for landscape orientation.