1 Reply Latest reply on May 6, 2014 4:11 AM by Qndrs Rotterdam

    Dynamically adjusting the height of a textbox to its content.

    Departure Level 1

      Hi All,


      1 - I am dynamically feeding text into a textbox/div.

      2 - I want to dynamically add an image right below each text.

      3 - Problem: each text content takes a different amount of rows and height

      4 - How should I calculate the position of the image then?

      5 - I somehow need to figure out the text-rows, or div height that each text occupies perhaps.

      6 - I think, if I create a textarea dynamically, i should be able to find the height or etc somehow


      Any solutions?