layoutOrientation

Typefunction
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
layoutOrientation()
Associationscom.livecode.library.responsivelayout
Summary

Get the orientation of the layout that the current card has.

Example
on mouseUp pButtonNumber
   set the iconPresetName of widget "SVG Icon" to "mobile phone"

   if layoutOrientation() is "portrait"  then
      set the angle of widget "SVG Icon" to 0
    else if layoutOrientation() is "landscape"  then
      set the angle of widget "SVG Icon" to 90
    else
      set the iconPresetName of widget "SVG Icon" to empty
   end if
end mouseUp
Description

Use the layoutOrientation function to get the orientation of the current card layout. When the library design environment is desktop, this function returns none.