Repository navigation
Commit dce50dd
committed
fix(ios): re-lay out a misplaced first text fragment in RCTUITextView on iOS 27
On iOS 27, TextKit 2 can leave the first layout fragment of a UITextView
pushed down by its own height after an edit that replaces text inside the
first paragraph while later paragraphs exist, e.g. Korean syllable
recomposition. RCTUITextView is sized with frames, so nothing lays the
fragment out again and the whole text stays shifted until the next edit
(FB25281535).
After each text change, check the first layout fragment and, when it is
misplaced, invalidate and re-lay out only that fragment's range.
Fixes #593861 parent 7fc911a commit dce50dd
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
155 | 184 | | |
156 | 185 | | |
157 | 186 | | |
| |||
0 commit comments