0 Replies Latest reply on Nov 7, 2008 8:02 AM by Alan_Free

    getTextExtent(str,width) HELP!!

      I've been working on this for a long time and for life of me I can't get a grip on it. I create a text field and format the size for my text using getTextExtent(). After I'm done with the first text I need to show a different text so I need to resize the height of the text field, but when I call getTextExtent with the new string my text field doesn't behaive correctly. Sttached is an example code that demonstrates my issue with the trace output following.

      trace output:
      1 49
      2 49
      3 27
      4 undefined
      5 undefined

      Please, if anybody can help me understand this I would be forever grateful for your kindness. It's driving me NUTTS.
      It appears like the TextField is orphaned or deleted. This snippet worked on MAC and failed on windows