Skip to content

[Feature Request] Adopt Plausible's iframe height setting mechanism #224

Open

Description

@keiwanmosaddegh

What

When embedding a Plausible Dashboard one is given a script tag that sets the height of the iframe automatically. Plausible is emitting an event with the height data that is listened to and applied to the Plausible iframe.

Adding the same to OpenPanel is a great way to improve the quality of life of embeddings.

Activity

  1. lindesvard commented on Nov 3, 2025

    @lindesvard
    Contributor

    Sure, sounds like a good idea. Please provide me with code sample and I can do that

  2. keiwanmosaddegh commented on Nov 3, 2025

    @keiwanmosaddegh
    ContributorAuthor

    I dug in the Plausible codebase and found this:

    https://github.com/plausible/analytics/blob/master/assets/js/embed.host.js

    <script async src="https://plausible.io/js/embed.host.js"></script>
  3. added a commit that references this issue on Nov 10, 2025
  4. lindesvard commented on Nov 10, 2025

    @lindesvard
    Contributor

    I got this working but radix modals screws me a bit, since they are miss-placed (centered of the content height) and you cannot scroll (since radix disables scroll). Not really sure how to get around this now.

    resize.iframer.mp4

    You have a branch up if you want to play around with it or if you have any solutions I would love to hear them.

    IF ANYONE WANT TO CONTRIBUTE, HERE IS A GREAT FIRST ISSUE

  5. keiwanmosaddegh commented on Nov 10, 2025

    @keiwanmosaddegh
    ContributorAuthor

    Oh, that looks neat - well done @lindesvard ! Might have some time later this week to look into this, thanks!

  6. lindesvard commented on Dec 2, 2025

    @lindesvard
    Contributor

    @keiwanmosaddegh if you have time for this I would very happy 🙏

  7. grootbro commented on Sep 7, 2026

    @grootbro
    Contributor

    Opened #491 for this.

    Takes the direction from feature/iframe-resize (thanks @lindesvard) but uses a small postMessage host script instead of iframe-resizer, and pins Radix dialogs to the visible iframe slice so they stay on-screen while the parent scrolls.

  8. lindesvard commented on Sep 7, 2026

    @lindesvard
    Contributor

    @grootbro hero! I'll take a look

  9. grootbro commented on Sep 10, 2026

    @grootbro
    Contributor

    @lindesvard Thanks! And thanks for the earlier work on feature/iframe-resize — it was a helpful starting point. Happy to hear your feedback on #491.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions