streamlit-calendar icon indicating copy to clipboard operation
streamlit-calendar copied to clipboard

Display bug when inside a tab that is not the first tab

Open diogovalentte opened this issue 1 year ago • 8 comments

I'm having an issue when using the calendar inside a tab where only a little part of the calendar is displayed. The calendar gets back to normal after interaction with it by clicking on the calendar buttons.

image

This only happens when the calendar is in a tab that is not the first tab. Example code below:

  • Good, works:
tab1, tab2 = st.tabs("tab1", "tab2")

with tab1:
    show_calendar()
with tab2:
    pass
  • Bad, don't works:
tab1, tab2 = st.tabs("tab1", "tab2")

with tab1:
    pass   
with tab2:
    show_calendar()

diogovalentte avatar Oct 11 '23 05:10 diogovalentte