Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Streamlit.setFrameHeight to set frame height correctly #237

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

raethlein
Copy link
Contributor

@raethlein raethlein commented Nov 14, 2024

Might be related to #213

It looks like the setFrameHeight behavior broke between versions 0.20.0 and 0.20.1 leading to too much bottom space after a map. If you take for example this app: https://github.com/danielan987/datafarm, you can see that the Selectbox element is way too far in the bottom when using a version > 0.20.0 but still works in 0.20.0.
The proposed fix here seems to resolve the issue. I also added an e2e test to ensure that the iframe height and the inner html height match.

Copy link
Collaborator

@blackary blackary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much!

@randyzwitch randyzwitch merged commit 82812fc into randyzwitch:master Nov 14, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants