Skip to content

Fix Portal::set_viewport_pos dirty flag choice.#1814

Merged
xStrom merged 1 commit into
linebender:mainfrom
xStrom:portal-compose
May 29, 2026
Merged

Fix Portal::set_viewport_pos dirty flag choice.#1814
xStrom merged 1 commit into
linebender:mainfrom
xStrom:portal-compose

Conversation

@xStrom
Copy link
Copy Markdown
Member

@xStrom xStrom commented May 26, 2026

Portal::set_viewport_pos was requesting layout, but that isn't actually needed. Just compose is enough for scroll translation. Other methods of Portal already correctly request compose.

@xStrom xStrom added masonry Issues relating to the Masonry widget layer needs review Needs review before proceeding. labels May 26, 2026
Copy link
Copy Markdown
Contributor

@PoignardAzur PoignardAzur left a comment

Choose a reason for hiding this comment

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

I think the reason we did that was to force the child scrollbars to run a layout pass for some reason? Either way, probably not necessary anymore.

@xStrom
Copy link
Copy Markdown
Member Author

xStrom commented May 29, 2026

I think that line might predate the compose pass even? Not sure, but it definitely predates work in this Linebender repo. Either way, theoretically it should work and I haven't encountered issues yet.

@xStrom xStrom removed the needs review Needs review before proceeding. label May 29, 2026
@xStrom xStrom added this pull request to the merge queue May 29, 2026
Merged via the queue into linebender:main with commit 5aded98 May 29, 2026
17 checks passed
@xStrom xStrom deleted the portal-compose branch May 29, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

masonry Issues relating to the Masonry widget layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants