container flexible

Typeproperty
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
set the container["type"] of object to "expanded"
Associationscom.livecode.library.responsivelayout, group, button, field, scrollbar, image, graphic, player, widget
Summary

Expands the control so that it fills the available space.

Example
set the content["type"] of card 1 to "column"
set the container["type"] of group "bady" to "flexible"
set the container["flexFit"] of group "bady" to "tight"
Description

Use the flexible container type so that the control expands to fill the available space along the main axis. This type of container only has an effect for controls whose owner has the content type Row, Column, or Flex. Unlike expanded, flexible does not require the control to fill the available space.

The flexible container type has a single sub-property called FlexFit, which can take the following values: - loose: The control can be as big as the available space (but smaller is allowed). This is the default value. - tight: The control is forced to fill the available space.

If there is more than one control with container type equal to expanded or flex, the available space is divided among them based on the value of the flex property of each one.