Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +1 -1
streamlit_app.py
CHANGED
|
@@ -113,7 +113,7 @@ components.html(
|
|
| 113 |
"""
|
| 114 |
<script>
|
| 115 |
function sendHeightWhenReady() {
|
| 116 |
-
const el = window.parent.document.getElementsByClassName('
|
| 117 |
if (el) {
|
| 118 |
const height = el.scrollHeight;
|
| 119 |
console.log("Sending height to parent:", height);
|
|
|
|
| 113 |
"""
|
| 114 |
<script>
|
| 115 |
function sendHeightWhenReady() {
|
| 116 |
+
const el = window.parent.document.getElementsByClassName('stMain')[0];
|
| 117 |
if (el) {
|
| 118 |
const height = el.scrollHeight;
|
| 119 |
console.log("Sending height to parent:", height);
|