XFA Specification
Chapter 7, Layout for Growable Objects
Flowing Layout for Containers
225
If a non-interactive bind process associates
FieldA
with
data that exceeds the minimum vertical height specified for
the field (
minH
), the layout processor grows the field
vertically to accommodate the text and rearranges the
subsequent fields. The illustration at right shows the vertical
growth of
FieldA
and the relocation of
FieldB
, and the
following depicts the Form DOM after new data is bound to
FieldA
and
FieldB
.
[subform (MySubform) layout="tb"]
[field (FieldA) = "To be or not to be …"
w="100mm" minH="10mm" maxH="100mm"]
[field (FieldB) = "Hello world."
w="100mm" minH="10mm" maxH="100mm"]
FieldA
To be or not to be, that is the
question. Whether 'tis nobler in
the mind to bear the slings and
arrows of outrageous fortune, or to
take arms against a sea of troubles
and by opposing end them?
FieldB
Hello world.
contentArea A
Growable fields after being bound
with data (non-interactive)
Interactive Form Fill-In
If a person filling out a form interactively provides new data to the growable fields illustrated above, the
field is not required to change shape. Rather, the layout processor may clip the new data, as described in
“Clipping” on page 59.
However if it does so then whenever the field has input focus the user interface
provides scroll bars or some other mechanism to make available the full content of the field.
Effect of Container Rotation on Flowed Layout
Flowing layout accommodates rotated containers by using the
adjusted axes of the container to determine layout. If both
fields in the illustration
“Growable fields after being bound
with data (non-interactive)”
are rotated 90 degrees
(counterclockwise), the subform is displayed as shown at right.
<subform name="MySubform" layout="tb">
<field name="FieldA" rotate="90"
w="100mm" minH="10mm" maxH="100mm"/>
<field name="FieldB" rotate="90"
w="100mm" minH="10mm" maxH="100mm"/>
</subform>
FieldA
To be or not to be, that is the
question. Whether 'tis nobler in
the mind to bear the slings and
arrows of outrageous fortune, or to
take arms against a sea of troubles
and by opposing end them?
FieldB
Rotated growable fields after being
bound with data (non-interactive)
Hello world.
contentArea A
Home Index Bookmark Pages
Pages: Home Index All Pages