6 Replies Latest reply on Feb 16, 2013 9:39 AM by michaelAkl

    Text Tool text css height auto ?

    michaelAkl Level 1

      I used the Text Tool to add a text inside a symbol.
      when i add my text to it . sym.$("Text").html("my text") i can see it autosizing  so the whole text is displayed but when i alert (sym.$("Text").height())
      it always returns the original height which the text was created. 
      on inspect element it shows the div is with a fixed height . and i can't find a way to change its css height  to auto.

       

      i tried:
      sym.$("Text").css('height','auto');

      sym.$("Text").css({"height":"auto"});

      none worked, any ideas ?  and thank you in advance! .