Auto height isn't natively supported yet, but you can add the following to to your compositionReady event:
'width' : '476px',
'height' : 'auto',
'background' : 'rgba(91,91,91,0.90)',
'padding' : '20px',
'border-radius' : '5px',
'border' : '1px solid #242424'
I threw a few styling properties in there for fun. Change "476px" to whatever the width of your div is.
Thank you Sarah for the reply,
i tried that, it didn't work. its not setting the height to auto, that's the problem! even though you wrote it in the css styling its not setting it.
what i am looking for is the height of Text after it is filled . any ideas for a work around or anything ?
Did you change "text" to the name of your element? Also keep in mind the auto height won't work in the tool, only when you preview in the browser.
Yeah i know, i changed the name of the element and i tested with the preview in the browser! i know. it didn't work!!
in the inspect element if i change it myself manually everything works great. but i cannot set it to auto from edge ..
it didn't make any sense! everything you did in the example i did it too it didn't work. then i deleted the text and created a new 1 it worked. musta been stuck or smthn! thank you! sarah!