Spaces:
Running
Running
Vlad Bastina commited on
Commit ·
f4e1edf
1
Parent(s): 68a8136
send height
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ components.html(
|
|
| 134 |
const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
|
| 135 |
if (el) {
|
| 136 |
const height = el.scrollHeight;
|
| 137 |
-
|
| 138 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|
| 139 |
} else {
|
| 140 |
// Retry in 100ms until the element appears
|
|
|
|
| 134 |
const el = window.parent.document.getElementsByClassName('st-emotion-cache-b95f0i')[0];
|
| 135 |
if (el) {
|
| 136 |
const height = el.scrollHeight;
|
| 137 |
+
console.log("Sending height to parent:", height);
|
| 138 |
window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
|
| 139 |
} else {
|
| 140 |
// Retry in 100ms until the element appears
|