Skip to content

fix: measuring component size for inline and code blocks - #214

Merged
exploIF merged 1 commit into
mainfrom
@exploif/fix-text-size-measurement
Oct 24, 2025
Merged

exploIF merged 1 commit into
mainfrom
@exploif/fix-text-size-measurement

Conversation

@exploIF

@exploIF exploIF commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator

Inline code and code block styles modifies typeface, meaning that this change counts for measuring layout using StaticLayout. We have to use proper base class (like MetricAffectingSpan) to calculate it properly

@exploIF
exploIF requested a review from szydlovsky October 24, 2025 12:37
@exploIF
exploIF merged commit 6adcdaf into main Oct 24, 2025
5 checks passed
@exploIF
exploIF deleted the @exploif/fix-text-size-measurement branch October 24, 2025 13:46
exploIF added a commit that referenced this pull request Oct 27, 2025
Similar to
#214, we
have to explicitly inform static layout that those spans affects layout
measurements
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.

2 participants