VladB46 commited on
Commit
a8d1689
·
verified ·
1 Parent(s): eea7a28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -345,7 +345,7 @@ components.html(
345
  """
346
  <script>
347
  function sendHeightWhenReady() {
348
- const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
349
  if (el) {
350
  const height = el.scrollHeight;
351
  console.log("Sending height to parent:", height);
 
345
  """
346
  <script>
347
  function sendHeightWhenReady() {
348
+ const el = window.parent.document.getElementsByClassName('stMain')[0];
349
  if (el) {
350
  const height = el.scrollHeight;
351
  console.log("Sending height to parent:", height);