initialOrientation

Typeproperty
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
get the initialOrientation of card
set the initialOrientation of card to {"portrait" | "landscape"}
Associationscom.livecode.library.responsivelayout, card
Summary

Sets the orientation the card layout will have when opened.

Example
set the initialOrientation of card 1 to "portrait"
set the initialOrientation of card 2 to "landscape"
Description

Use the initialOrientation property to define the orientation a card will have when it is opened. It can take one of the following values, "portrait" or "landscape". The default value is portrait - Behavior in the desktop: This property has no effect for desktop applications. However if you are in the IDE and set this property to "portrait" or "landscape" and the environment to mobile or tablet. The library simulates the orientation change, setting the smallest side as width and the largest as height for an initial "portrait" orientation. Doing the opposite for an initial "landscape" orientation. - Behavior in the mobile: Force orientation change with "portrait" or "landscape".