Repository navigation
fix(ios): retain intrinsic width for explicit line breaks - #991
Yash-Singh1 wants to merge 1 commit into
Conversation
|
Thanks, the detection is right and this is the correct place for it. I reviewed it against the measurement paths and the renderer and found one problem the previous pin was masking, so I put a follow-up commit on top of yours. GitHub refuses maintainer pushes to organization-owned forks, so the branch lives upstream as What I found
Single-line lists already had this on What the follow-up changes
Verified
|
|
Carried as #1017, which has your commit bd6f647 first and the follow-up above on top. GitHub does not allow maintainer pushes to organization-owned forks, so the branch lives upstream. We'll close this one when #1017 merges; both commits keep their authorship in the history. Thanks again for the fix and the write-up. |
Oops, sorry about that. I'll create PRs from my personal account next time. |
@Yash-Singh1, no, this is okay now! I've already got access to the pingdotgg fork 🙂 |


What/Why?
Short text such as
one\ntwoexpands tomaxWidthon iOS because measurement treats every second line as a soft wrap. Detect explicit separators between TextKit line fragments so those lines retain their intrinsic width. Actual soft wrapping still reports the available width, including when it occurs after an explicit break.Closes #990. This draft provides the proposed implementation for maintainer discussion requested by the contribution guide.
Testing
PR Checklist
Generated by GPT 6.1 Sol using the Codex harness.