XFA Specification
Chapter 7, Layout for Growable Objects
Flowing Layout for Containers
224
●
●
Positioned layout applied to text
Flowing layout applied to a geometric figure inside a draw that does not assert
w
and
h
properties
(because such a geometric figure has no natural size)
Flowing layout applied to a subform that is a leader or trailer or is contained within a leader or trailer
subform (because the leader or trailer size is fixed)
●
Interaction Between Growable Objects and Flowed Content
Growable containers can have a dynamic size, which can affect the layout of flowed content simply by
changing the size of the container. Whether a growable container is allowed to change depends on
whether the form is being used interactively or not.
“Growable Containers” on page 218
describes the
characteristics of growable containers.
Non-Interactive Form Layout
For initial layout and non-interactive layout, growable containers are re-sized to accommodate the data
they contain. The new size of the container is used to determine the containers position, as described
“Flowing Layout for Containers” on page 221,
with the exception that the new container size is used rather
than the original container size.
The following example describes vertically growable fields
that have no default value. These fields are contained in a
subform with that uses flowed layout (
layout="tb").
After initial layout, those fields have the appearance shown
at right.
<subform name="MySubform" layout="tb">
<field name="FieldA"
w="100mm" minH="10mm" maxH="100mm"/>
<field name="FieldB"
w="100mm" minH="10mm" maxH="100mm"/>
</subform>
FieldA
FieldB
contentArea A
Growable fields after initial layout