Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ components.html(
|
|
| 121 |
"""
|
| 122 |
<script>
|
| 123 |
function sendHeightWhenReady() {
|
| 124 |
-
const el = window.parent.document.getElementsByClassName('
|
| 125 |
if (el) {
|
| 126 |
const height = el.scrollHeight;
|
| 127 |
console.log("Sending height to parent:", height);
|
|
|
|
| 121 |
"""
|
| 122 |
<script>
|
| 123 |
function sendHeightWhenReady() {
|
| 124 |
+
const el = window.parent.document.getElementsByClassName('stMain')[0];
|
| 125 |
if (el) {
|
| 126 |
const height = el.scrollHeight;
|
| 127 |
console.log("Sending height to parent:", height);
|