Commit 228a081
Allow the containing block to set trailing position of absolute descendants (facebook#41489)
Summary:
X-link: facebook/yoga#1471
If we are going to allow the containing block to layout its absolute descendants and NOT the direct parent then we need to change step 11 which is concerned with setting the trailing position in the case we are row or column reverse. This is the very last step in the function and is positioned that way because it operates on the assumption that all children have their position set by this time. That is no longer a valid assumption if CBs layout their absolute children. In that case the CB also needs to take care of setting the position here.
Because of this problem I moved some things around. It now works like:
* If errata is set, the direct parent will set trailing position for all non absolute children in step 11
* If errata is set the CB will set trailing position of absolute descendants after they are laid out inside of layoutAbsoluteDescendants
Reviewed By: NickGerleman
Differential Revision: D512172911 parent 9da279f commit 228a081
File tree
1 file changed
+24
-6
lines changed- packages/react-native/ReactCommon/yoga/yoga/algorithm
1 file changed
+24
-6
lines changedLines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
557 | 573 | | |
558 | 574 | | |
559 | 575 | | |
| |||
2386 | 2402 | | |
2387 | 2403 | | |
2388 | 2404 | | |
2389 | | - | |
2390 | | - | |
2391 | | - | |
2392 | | - | |
| 2405 | + | |
| 2406 | + | |
2393 | 2407 | | |
2394 | | - | |
2395 | 2408 | | |
2396 | 2409 | | |
2397 | 2410 | | |
2398 | | - | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
2399 | 2417 | | |
2400 | 2418 | | |
2401 | 2419 | | |
| |||
0 commit comments