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.

This only happens when the calendar is in a tab that is not the first tab. Example code below:
tab1, tab2 = st.tabs("tab1", "tab2")
with tab1:
show_calendar()
with tab2:
pass
tab1, tab2 = st.tabs("tab1", "tab2")
with tab1:
pass
with tab2:
show_calendar()
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.
This only happens when the calendar is in a tab that is not the first tab. Example code below: