VladB46 commited on
Commit
8f9b0f3
·
verified ·
1 Parent(s): 84f128b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -189,7 +189,7 @@ components.html(
189
  """
190
  <script>
191
  function sendHeightWhenReady() {
192
- const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
193
  if (el) {
194
  const height = el.scrollHeight;
195
  console.log("Sending height to parent:", height);
 
189
  """
190
  <script>
191
  function sendHeightWhenReady() {
192
+ const el = window.parent.document.getElementsByClassName('stMain')[0];
193
  if (el) {
194
  const height = el.scrollHeight;
195
  console.log("Sending height to parent:", height);