There are two base models to interpret the Layout constructors: the bound model
and the unbound model (Table 13.5). The first will try to adapt the element layout to a visually defined
dimension while the second has no visual constraint and will expand and contract to fit the
element dimension.
Part II: Server Side, JavaScript, and Flash: Oh My!
374
Table 13 - 5
Layout Constructors Description for the Bound Model
Description for the
Unbound Model
Margins(margin:
Float, ?marginafter:
Null < Float > )
The element will stretch to fit the dimension
left subtracting the margins from the
total available space. If the second margin
is omitted it will be set equal to the first.
The element occupies its fit
size and leaves the specified
margins before and after
(the after value is equal to
the before if omitted).
Center(?content:
Null < Float > )
The element has a fixed size (the
passed argument or automatically
calculated) and it is placed in the center of
the available dimension.
The element occupies the
specified dimension or, if
the argument is omitted, its
fit size; no margins are left.
Pages:
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714