Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -345,7 +345,7 @@ components.html(
|
|
| 345 |
"""
|
| 346 |
<script>
|
| 347 |
function sendHeightWhenReady() {
|
| 348 |
-
const el = window.parent.document.getElementsByClassName('
|
| 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);
|