How to measure window.innerHeight before declaring any widgets

is there any way to measure window.innerHeight on Streamlit app before declaring any widgets?

I have tried using streamlit_js_eval library to measure ‘window.innerHeight’ and then set container heights proportional to the innerHeight, but streamlit_js_eval() function always returned 0.

1 Like

I had a similar issue (where it always returned a height of 0px) until I used window.parent.innerHeight.

1 Like

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