New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding height is not dynamic #37437
Comments
Hello @JasonStrazisar , just to double check: This is using what type of embedding, public, static or interactive? |
Similar/related to #30634 ? |
Hey ! This is on interactive embedding |
Thanks @JasonStrazisar, have you tried using postMessage to dynamically adjust the iframe? I don't think iframeResizer is supposed to work for interactive embedding. |
Hey @albertoperdomo ! Yes I tried using postMessage with the 'fit' mode, the only problem, is that the only message the embedd send is with the frame mode set to 'normal', I never get a 'fit' frame mode, is there something to setup before doing it on metabase ? I looked through the documentation, but I didn't found if there was something to do (apart from setting up the listener) |
Hi @albertoperdomo I work with Jason and we are still stucked with this issue. Did you fund time to check why the 'fit' event doesn't occur on our side ? cc @paoliniluis |
I have the same issue. |
I can confirm exact behaviour is happening for static embedding as well. We are using
|
Many folks on this issue were using interactive (full-app) embedding. For that, the recommended setup is to listen for the 'fit' event with postMessage. This has been fixed in #40841. The fix has also been backported and is available in releases 49.4 and newer. |
What's your issue with static @bitshadow and what version are you using? |
When using the It works fine when I set the Metabase html tag height inside iframe to Screen.Recording.2024-04-17.at.5.05.58.PM.movVersion Information:
|
@bitshadow move to the latest version and it should work |
Describe the bug
When embedding a dashboard, and using a "dynamic" iFrame resize, like iFrameResizer, the height of the html is always expending, but never shrinking when it change, due to the use of
height: 100%;
instead ofheight: auto;
on the metabase html tag.Enregistrement.de.l.ecran.2024-01-09.a.11.59.18.mov
But, when I change the
height
toauto
, it work as excepted:Enregistrement.de.l.ecran.2024-01-09.a.12.01.21.mov
To Reproduce
Expected behavior
No response
Logs
No response
Information about your Metabase installation
Severity
Annoying but not blocking
Additional context
No response
The text was updated successfully, but these errors were encountered: