Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -400,7 +400,7 @@ components.html(
|
|
| 400 |
"""
|
| 401 |
<script>
|
| 402 |
function sendHeightWhenReady() {
|
| 403 |
-
const el = window.parent.document.getElementsByClassName('
|
| 404 |
if (el) {
|
| 405 |
const height = el.scrollHeight;
|
| 406 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|
|
|
|
| 400 |
"""
|
| 401 |
<script>
|
| 402 |
function sendHeightWhenReady() {
|
| 403 |
+
const el = window.parent.document.getElementsByClassName('stMain')[0];
|
| 404 |
if (el) {
|
| 405 |
const height = el.scrollHeight;
|
| 406 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|