Chin Kuan, Low wrote:
hbox03 is similar to hbox02 except that hbox03 has a non-empty value
attribute. The result is that the width of the label component in
hbox03 is much wider and not balanced compared to hbox01 and hbox03.
Is this a bug? Have any work around?
No, it is not a bug.
The label defaults to a preferred and minimum width of the size of its
text (as if you'd set style="width: 18em; min-width: 18em;" [by my
measurement]). This means that in a window of width 52em there is now
only 34em of space space which is distributed between the three elements
so that the spacers get 6.8em each.
If you don't want the width of the label to affect the layout then you
need to set its preferred and minimum width to zero.
In Mozilla 1.7.x/Firefox 1.0.x the only way to set the preferred width
to zero is with the width="0" attribute (larger widths may be set with
either the attribute or the style). In later versions style="width: 0%;"
also works.
In Mozilla 1.7.x/Firefox 1.0.x the only way to set the minimum width to
zero is with the crop attribute. In later versions style="min-width:
0%;" is equivalent to crop="end".
--
Warning: May contain traces of nuts.
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout