Spaces:
Build error
Build error
Merge branch 'main' of https://huggingface.co/spaces/VladB46/DataAnalystDemo into main
Browse files- app_generated.py +1 -1
app_generated.py
CHANGED
|
@@ -517,7 +517,7 @@ components.html(
|
|
| 517 |
"""
|
| 518 |
<script>
|
| 519 |
function sendHeightWhenReady() {
|
| 520 |
-
const el = window.parent.document.getElementsByClassName('
|
| 521 |
if (el) {
|
| 522 |
const height = el.scrollHeight;
|
| 523 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|
|
|
|
| 517 |
"""
|
| 518 |
<script>
|
| 519 |
function sendHeightWhenReady() {
|
| 520 |
+
const el = window.parent.document.getElementsByClassName('stMain')[0];
|
| 521 |
if (el) {
|
| 522 |
const height = el.scrollHeight;
|
| 523 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|