VladB46 commited on
Commit
7ff4b34
·
verified ·
1 Parent(s): f56fae5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -400,7 +400,7 @@ components.html(
400
  """
401
  <script>
402
  function sendHeightWhenReady() {
403
- const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
404
  if (el) {
405
  const height = el.scrollHeight;
406
  window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
 
400
  """
401
  <script>
402
  function sendHeightWhenReady() {
403
+ const el = window.parent.document.getElementsByClassName('stMain')[0];
404
  if (el) {
405
  const height = el.scrollHeight;
406
  window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');