0 Replies Latest reply on Jun 24, 2009 3:06 AM by gauravgr8

    flex air textflow dynamic height

    gauravgr8

      Hi,

      In my flex application I have scenerio like this:
      parent to child
      Vbox->Canvas->Sprite->Textflow

      In this scenerio now I need to have dynamic height of the textflow & its parents. Here the root parent is the itemrenderer of the datagrid I have.

      I need the heights of rows to be adjust according the content in it.

      Right now I am importing the xml to textflow, then getting the number of lines, text height. Then removing the textflow & adding it again with the measured height according to the number of lines & text height.

       

      How can I achieve it without removing & adding it again, coz it is taking much time in updating?

      Thanks in advance.