What are the ways to reformat / redefine the tree of controls in Flex other than ValidateNow ()

I am having problems with multi-line text not reformatting properly when I call loadStyleDeclarations

. However, if I load the same TWICE stylesheet, it updates and reformats the text correctly.

So what I want to do is update my control to force it to reformat the text. I've tried ValidateNow()

and ValidateDisplayList()

but doesn't seem to trigger the correct kind of layout request.

I'm guessing I'm loadStyleDeclarations()

calling some other re-validation function, but I can't seem to find what it is.

0


source to share


1 answer


Try calling invalidateProperties () and / or invalidateDisplayList () on your component. This should cause the component to restart on the next screen refresh.



+1


source







All Articles