Streamlit plots setting incorrect height and width if checkbox unselected #7597
Labels
feature:st.plotly_chart
priority:P3
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
I want to make some plots depending on an option selected in the sidebar. When I have 2 plots and I remove the first one via a checkbox the lower plot take the height and container size of the first one despite not setting those.
Showing both:
Showing only the second:
In the second image you can see that the figure 2 now has use_container_width=True despite it being set to False in code and it has taken the height setting made on figure 1.
Reproducible Code Example
Steps To Reproduce
Expected Behavior
I would expect figure 2 to keep the default height and container width to be False when the checkbox is unselected
Current Behavior
No response
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: