Iโve noticed this too. If you need another workaround Iโve discovered that by layering or vertically/horizontally joining altair charts together you can get it to correctly set the height.
For example if you have
chart = alt.Chart(df)โฆ
you can use
st.altair_chart(chart + chart)
to get it to set the height correctly. However, it will slow down any interactions you have in your chart since itโs now doubled what is being displayed.