KnightWorker37 commented on issue #5197:
URL: https://github.com/apache/superset/issues/5197#issuecomment-2090166321

   A bit old but if you look at the superset embed SDK's 
[`embedDashboard`](https://github.com/apache/superset/blob/master/superset-embedded-sdk/src/index.ts#L79)
 it returns a callback:
   ```js
   // ...
   return {
       getScrollSize,
       unmount,
       getDashboardPermalink,
       getActiveTabs,
     };
   }
     ```
     
     So you can call it to get the height:
     ```js
   useEffect(() => {
       const dashboard = embedDashboard();
       const { width, height } = await dashboard.getScrollSize();
       // proceed to use height in your page!
   })


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to