Skip to content
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

fix: propagate layout call to all children of InspectableWebContentsViewViews #40036

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Sep 28, 2023

Backport of #39994

See that PR for details.

Notes: Fixed BrowserView.setBounds calls not painting view in new bounds in some cases.

…ews.

When BrowserView bounds are set from js, those might not trigger layout
immediately, sometimes propagating InvalidateLayout call to parent.
View is marked as needing layout, expecting to receive it from parent on
next layout call. The problem is that BrowserView's view is added as child
of InspectableWebContentsViews which does not call setBounds (which
would trigger layout) on all of it's children when doing it's layout,
so it skips propagating Layout call to its children BrowserViews views,
even though those were marked as needing layout.
Call base class View::Layout which will iterate over views' children
and call Layout on those that were marked as needing them.

Fixes #39993.

Co-authored-by: Marek Haranczyk <marek@openfin.co>
@trop trop bot added 26-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 28, 2023
@jkleinsc jkleinsc merged commit 7f53717 into 26-x-y Sep 28, 2023
14 checks passed
@jkleinsc jkleinsc deleted the trop/26-x-y-bp-fix-propagate-layout-call-to-all-children-of-inspectablewebcontentsviewviews--1695914263072 branch September 28, 2023 22:55
@release-clerk
Copy link

release-clerk bot commented Sep 28, 2023

Release Notes Persisted

Fixed BrowserView.setBounds calls not painting view in new bounds in some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
26-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant