Commit 684db13
authored
Limit Yoga layout to relevant root on resize (#10580)
* Limit Yoga layout to relevant root on resize
Recalculation of Yoga layout due to root view size change does not
require that we re-run layout on all roots. It also does not require
that we invoke UpdateLayout on any new nodes (as a resize operation is
independent of a batch of UIManager operations).
This change limits the scope of Yoga calculation and application of Yoga
results to XAML views to only the root view that changed size. This
optimization primarily impacts apps with multiple windows, but can also
benefit any React Native Windows app with multiple roots.
* Change files1 parent e645586 commit 684db13
File tree
2 files changed
+15
-5
lines changed- change
- vnext/Microsoft.ReactNative/Modules
2 files changed
+15
-5
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
220 | 221 | | |
221 | | - | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | | - | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| |||
0 commit comments