--- In [email protected], Chris <zomgfore...@...> wrote: > > You can bind the width of the text field to the dimensions of its parent: > > <mx:Canvas id="mainContainer" width="100%" height="100%" styleName="debug1"> > <mx:Text width="{mainContainer.width}" text="here is a very very > very very very very very very very very very very very very very very very > very very very very very very very very very very very very very very very > very very very very long piece of text." /> > </mx:Canvas> > > > This way you don't have to use a 'hard' width. Kind of a hack, I know.
Thanks for the suggestion, but this becomes problematic inside a Repeater, as you have to then give an ID to the parent and to other children in the container and then use really long expressions based on repeater.currentIndex. Plus, I think that the problem is really that at the time that measure() was called, all of the flexible components confused everything, and I'm not sure that binding to a variable-width component would have helpwed. Thanks :)

