VladB46 commited on
Commit
1507d67
·
verified ·
1 Parent(s): cd3283b

Update app_generated.py

Browse files
Files changed (1) hide show
  1. app_generated.py +1 -1
app_generated.py CHANGED
@@ -516,7 +516,7 @@ components.html(
516
  """
517
  <script>
518
  function sendHeightWhenReady() {
519
- const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
520
  if (el) {
521
  const height = el.scrollHeight;
522
  window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
 
516
  """
517
  <script>
518
  function sendHeightWhenReady() {
519
+ const el = window.parent.document.getElementsByClassName('stMain')[0];
520
  if (el) {
521
  const height = el.scrollHeight;
522
  window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');