Spaces:
Running
Running
Vlad Bastina commited on
Commit ·
4100b29
1
Parent(s): 995d63d
send height
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ components.html(
|
|
| 131 |
"""
|
| 132 |
<script>
|
| 133 |
function sendHeightWhenReady() {
|
| 134 |
-
const el = window.parent.document.getElementsByClassName('
|
| 135 |
if (el) {
|
| 136 |
const height = el.scrollHeight;
|
| 137 |
console.log("Sending height to parent:", height);
|
|
|
|
| 131 |
"""
|
| 132 |
<script>
|
| 133 |
function sendHeightWhenReady() {
|
| 134 |
+
const el = window.parent.document.getElementsByClassName('stMain')[0];
|
| 135 |
if (el) {
|
| 136 |
const height = el.scrollHeight;
|
| 137 |
console.log("Sending height to parent:", height);
|