Auto Grow property

Official Content
This documentation is valid for:
It allows you to automatically adjust the height of the control when the content (i.e. text) is larger than the size of the container.

Scope

Generators: Android, Apple

Description

This property is used in Smart Device applications to develop their user interface; more specifically, it allows you to automatically adjust the height of the control when the content (i.e. text) is larger than the size of the container.

Values

True The height of the control grows automatically, as much as necessary to show all the content.
False The height of the control does not grow automatically. It is up to the control to adjust the content when it is larger than the container; e.g. containers may add scroll bars if possible, text controls may clip text or add scroll bars, etc.

Controls - Default Value

This property applies to different types of Smart Device controls: containers and text. The default value depends on the type of control. The following table lists the controls that support this property and their default values.

Container Controls Default Value
Grid False
Table True
Group True
Text Controls
Attribute False
Variable False
LongVarChar (Attribute or variable) True
Texblock False

Tips

The following table shows the combination of Auto Grow property and its effect.

    ATTRIBUTE
    True False
T
A
B
L
E
T
r
u
e
The attribute grows if the item is bigger than the cell where it is contained. The table grows and has scroll bars. The table might grow, but since the attribute does not, the table does not. 
F
a
l
s
e
The table doesn't grow; therefore, the attributes inside it are limited by the table. In other words, the auto grow property of the attributes is ignored. (*) None of them grow.

Note: (*) This behavior changed between GeneXus X Evolution 3 and GeneXus 15.

Samples

Android Autogrow Grid True Att False Android Autogrow Grid True Att True
Attribute Auto Grow=False
Attribute Auto Grow=true

In some cases, you may wish to see many records in the grid, although the text does not fit; in other cases, you may wish to see the whole text, although the grid is larger and fewer rows are shown.

See Also

Auto Grow in Grids for Smart Devices