You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a PoC, we used the embedded dashboard and struggled with the scroll size of the iframe. The initial height of the iframe is always the default 150px because the dashboard hasn't finished loading. We ended up polling for a change in the size. We think polling is very unsexy, so we changed the call requesting the size to only reply after the dashboard has finished loading.
We implemented a ConditionWatcher that handles the waiting. For our use case, we defined the dashboard as "loaded" by calling setScrollSizeFixed() in DashBoardPage.tsx when isReadyToRender === true. We’re sure there are better places to define "loaded," but our understanding of your application and the technologies is limited. Therefore it isn't working properly yet.
After implementing it, we thought this change might also be helpful for others. So we wanted to share our idea with you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Superset Team,
In a PoC, we used the embedded dashboard and struggled with the scroll size of the iframe. The initial height of the iframe is always the default 150px because the dashboard hasn't finished loading. We ended up polling for a change in the size. We think polling is very unsexy, so we changed the call requesting the size to only reply after the dashboard has finished loading.
We implemented a ConditionWatcher that handles the waiting. For our use case, we defined the dashboard as "loaded" by calling
setScrollSizeFixed()
inDashBoardPage.tsx
whenisReadyToRender === true
. We’re sure there are better places to define "loaded," but our understanding of your application and the technologies is limited. Therefore it isn't working properly yet.After implementing it, we thought this change might also be helpful for others. So we wanted to share our idea with you.
Thanks for the amazing project you’ve created!
Best regards,
Kevin
Beta Was this translation helpful? Give feedback.
All reactions