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