Spaces:
Build error
Build error
Update app_generated.py
Browse files- app_generated.py +1 -1
app_generated.py
CHANGED
|
@@ -516,7 +516,7 @@ components.html(
|
|
| 516 |
"""
|
| 517 |
<script>
|
| 518 |
function sendHeightWhenReady() {
|
| 519 |
-
const el = window.parent.document.getElementsByClassName('
|
| 520 |
if (el) {
|
| 521 |
const height = el.scrollHeight;
|
| 522 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|
|
|
|
| 516 |
"""
|
| 517 |
<script>
|
| 518 |
function sendHeightWhenReady() {
|
| 519 |
+
const el = window.parent.document.getElementsByClassName('stMain')[0];
|
| 520 |
if (el) {
|
| 521 |
const height = el.scrollHeight;
|
| 522 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|