I desire to constrain the text in a label to its width, but I
width to be flexible when the browser is resized. When I use
percentage for the width of the label the text is not
rather the label and any percentage width parent will expand
the full text length. Am I missing something here.
I have enclosed a small demonstration of this behavior. If
you run this
MXML, you will notice that in row2 the labels are constrained
to a width
of 150, but of course this width does not adjust if the
resized. In row1, the labels are set to be width of 25%, but
label is not constrained, it is stretched to display the
and is no longer 1/4 of the width of the display.
<?xml version="1.0" encoding="utf-8"?>
public var dataAry:Array = ["A short String","ABCDEF","A
The quick brown fox jumped over the lazy dog.","123456"];