Skip to content

[6.x] Fix Live Preview iframe becoming unscrollable after resizing in Chromium#14542

Merged
jasonvarga merged 1 commit into6.xfrom
live-preview-scroll
Apr 23, 2026
Merged

[6.x] Fix Live Preview iframe becoming unscrollable after resizing in Chromium#14542
jasonvarga merged 1 commit into6.xfrom
live-preview-scroll

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

This pull request fixes an issue where dragging the Live Preview resize handle would leave the preview iframe unscrollable in Chromium-based browsers (Chrome, Edge, Arc, etc.). Safari was unaffected.

This was happening because Chromium doesn't recalculate an iframe's scroll state when its parent container is resized. Small drags within the same CSS breakpoint were especially bad, as nothing else triggered the necessary reflow.

This PR fixes it by toggling a translateZ(0) transform on the iframe for a single animation frame after the resize ends, which forces Chromium to recalculate the iframe's layout and restore scrollability.

Fixes #14540

@jasonvarga jasonvarga merged commit dbd46a2 into 6.x Apr 23, 2026
18 checks passed
@jasonvarga jasonvarga deleted the live-preview-scroll branch April 23, 2026 15:11
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.

Live Preview: dragging the editor/preview resizer mostly leaves the iframe unscrollable in Chromium Browsers

2 participants