When a user selects an item from the grid, the showView
method runs, and displays the appropriate text. This method does
not seem to want to consistently put 10px between both elements.
Some words it will work, but you it takes two clicks in order to
position correctly. But this seems to only work when the width of
the text1 element is longer then the next selected item. Otherwise
if the current item's length is shorter than the next, it will
never position correctly but just overlay.
How can i get these to position as expected? Thanks!
Flex needs time to determine how big the text is once you've
set it. The Flex framework operates in cycles (it is based on the
Flash Player frame). Once you've set the text you cannot easily get
its correct size. You can try calling text1.validateNow() and see
if that will help. If not, I'd suggest putting the text controls in
an HBox with a horizontalGap="10"; that would be the easiest