VladB46 commited on
Commit
dfc7472
·
verified ·
1 Parent(s): 0c6ce63

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +1 -1
streamlit_app.py CHANGED
@@ -113,7 +113,7 @@ components.html(
113
  """
114
  <script>
115
  function sendHeightWhenReady() {
116
- const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
117
  if (el) {
118
  const height = el.scrollHeight;
119
  console.log("Sending height to parent:", height);
 
113
  """
114
  <script>
115
  function sendHeightWhenReady() {
116
+ const el = window.parent.document.getElementsByClassName('stMain')[0];
117
  if (el) {
118
  const height = el.scrollHeight;
119
  console.log("Sending height to parent:", height);