6 Replies Latest reply on Mar 2, 2010 9:54 AM by tehxike1

    validateNow doesn't update a label's size

    tehxike1 Level 1

      Is this to be expected?  I want to be able to do something like this:


      lbl.text = value;

      lbl.x = point.x - lbl.width;


      When I try this, lbl.width hasn't updated, so my it ends up being in the wrong place.  I'm aware of the left/right properties, but this won't work since I have some other calculations to do as well.  I've tried calling lbl.validateNow() immediately after setting lbl.text, but this seems to have no effect.  Is there a way to make sure the label has been measured before moving on, or do I simply have to watch it for a resize and move it afterwards?