updateLayout

Typecommand
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
updateLayout <pLongId>, [<pNotCache>]
Associationscom.livecode.library.responsivelayout
Summary

Update object layout.

Parameters
NameTypeDescription
pLongId

The long id of an object, this object can be a card or any other control inside the card. If the long id of a stack is passed, it will simply be ignored and no action will be taken.

pNotCache

If you don't want to use the library cache, pass the value true, by default it is false. The cache is created the first time the updateLayout command is called. So if the number of controls on the card has changed it is advised to pass true the next time the updateLayout command is invoked.

Example
on deleteButton
   if lockLayout() is true then unlockLayout
   updateLayout the long id of this card, true
end deleteButton
Description

Use the updateLayout command to update the layout of an object and its child controls, if any.