Vlad Bastina commited on
Commit
68a8136
·
1 Parent(s): 2af4fdb

send height

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -134,6 +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
  window.parent.parent.postMessage({ type: 'setHeight', height: height }, '*');
138
  } else {
139
  // 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