When running st.balloons() inside st.dialog(), the balloons are offset by half the page?
Sample code:
import streamlit as st
# st.balloons() ## This is fine
@st.dialog("Surprise!")
def show_dialog():
st.write("Some balloons")
st.balloons() ## This is offset by half the page
if st.button("Click for a surprise"):
# st.balloons() ## This is also fine, but will be hidden behind the dialog
show_dialog()
Details:
Runnning on Windows
Python 3.10
Streamlit version 1.37.0