Skip to content

Setup sync CoreTextNode calculations#105

Draft
girouxc wants to merge 2 commits into
solid-tv:mainfrom
girouxc:feature/sync-text-layout-calculations
Draft

Setup sync CoreTextNode calculations#105
girouxc wants to merge 2 commits into
solid-tv:mainfrom
girouxc:feature/sync-text-layout-calculations

Conversation

@girouxc

@girouxc girouxc commented Jun 17, 2026

Copy link
Copy Markdown

This MR aims to make the calculation of the size of the text eager, so we can avoid layout shifts when flex is used to wrap text elements.

Before - you can see the focus debug overlay takes a smaller dimension for a split second, and then changes dimension to take the width of the contained text.
https://github.com/user-attachments/assets/93c2dfee-1b2e-438a-9549-d3c871903779

After - the focus debug overlay instantly has the right size applied
https://github.com/user-attachments/assets/c256fe1d-a61a-4d51-a277-34e3a50985d7

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