Skip to content

fix(iframe resizing): improve positioning of the iFrame after events#476

Merged
Rodeoclash merged 2 commits into
mainfrom
maint/remove-scroll
May 11, 2026
Merged

fix(iframe resizing): improve positioning of the iFrame after events#476
Rodeoclash merged 2 commits into
mainfrom
maint/remove-scroll

Conversation

@Rodeoclash
Copy link
Copy Markdown
Contributor

The iFrame component has a natural scrollbar built into it. Currently, this is never seen because the upstream "resize" event broadcasts are handled without any delay. However, to fix a problem with transiant small heigh pages, the scrolling needs to be disabled to avoid showing a flash of scrollbar content.

The iFrame component has a natural scrollbar built into it. Currently, this is never seen because
the upstream "resize" event broadcasts are handled without any delay. However, to fix a problem with
transiant small heigh pages, the scrolling needs to be disabled to avoid showing a flash of
scrollbar content.
@Rodeoclash Rodeoclash changed the title fix(iframe resizing): prevent scrolling on the iFrame component fix(iframe resizing): improve positioning of the iFrame after events May 11, 2026
@Rodeoclash Rodeoclash force-pushed the maint/remove-scroll branch from b002480 to 7cfe3a8 Compare May 11, 2026 05:32
Comment thread src/services/messages.ts Outdated
ONBOARDING_SESSION_COMMITTED = "onboardingSessionCommitted",
ONBOARDING_STEP_CHANGED = "onboardingStepChanged",
ONBOARDING_SESSION_FINISHED = "onboardingSessionFinished",
PAGE_CHANGED = "pageChanged",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pageLoaded / PAGE_CHANGED?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated it to page loaded, was more specific about exactly what was happening.

This adds support for a new page changed event in the embed which will be fired when the page is
changed in SuperAPI. This will handle automatically placing the iFrame into the browsers viewport in
the correct location when navigating between pages.
@Rodeoclash Rodeoclash force-pushed the maint/remove-scroll branch from 7cfe3a8 to 8147a7f Compare May 11, 2026 06:03
@Rodeoclash Rodeoclash merged commit fb4ee95 into main May 11, 2026
11 checks passed
@Rodeoclash Rodeoclash deleted the maint/remove-scroll branch May 11, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants