Can streamlit.components.v1.html components automatically adjust the height

I used streamlit.components.v1.html in my app, and need adjust the height according to the length of the text automatically. will i success~~

Hi @yxilong -

No, it won’t automatically adjust it, but if you can programmatically determine how tall the content is, then you can pass that to the height argument.

Best,
Randy

OK @randyzwitch ,i got it, thank you very much.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.