Vlad Bastina commited on
Commit
4100b29
·
1 Parent(s): 995d63d

send height

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ components.html(
131
  """
132
  <script>
133
  function sendHeightWhenReady() {
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);
 
131
  """
132
  <script>
133
  function sendHeightWhenReady() {
134
+ const el = window.parent.document.getElementsByClassName('stMain')[0];
135
  if (el) {
136
  const height = el.scrollHeight;
137
  console.log("Sending height to parent:", height);