Once I've set either the width
or percentWidth
property on a flex label, is there a way to reset the width to its default (i.e., the width of the text plus padding)?
I'm using the label as a renderer. In some cases, I'd like it to automatically size to the text, and in other cases, I'd like it to be a percentage width of its container. Obviously, I could use two separate labels, one for each of the above cases, but I'm curious if it's possible to reset the label to its default behavior.
Best Answer
From flex livedocs