Skip to content

fix ResizeObserver not working in a popout#519

Open
muerwre wants to merge 1 commit intocaplin:masterfrom
muerwre:fix-popout-resizes
Open

fix ResizeObserver not working in a popout#519
muerwre wants to merge 1 commit intocaplin:masterfrom
muerwre:fix-popout-resizes

Conversation

@muerwre
Copy link
Copy Markdown

@muerwre muerwre commented Apr 24, 2026

I noticed that when window is opened in a popout, and the main window is unfocused, layout recalculations doesn't happen (or they heavily throttled with up to 1 minute delay).

A fix to that would be to use ResizeObserver of current window (just creating new ResizeObserver(...) uses one from parent window and executes callbacks in main window context for some reason).

Also, window resize event is throttled too, so, I've added observation on document body of popout as a fallback.

Not a final and clean solution, I guess, but somehow it works on my setup in a complex app with nested Layouts.

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.

1 participant