| 2910 | }; |
| 2911 | |
| 2912 | highestWidth += yogaContainerNode->getLayout().padding(facebook::yoga::PhysicalEdge::Right); |
| 2913 | highestHeight += yogaContainerNode->getLayout().padding(facebook::yoga::PhysicalEdge::Bottom); |
| 2914 | |
| 2915 | auto updateResult = scrollState.updateContentSizeAndRtlOffset( |
| 2916 | Size(highestWidth, highestHeight), _calculatedFrame.size(), rtlOffsetX, getPointScale(), isHorizontal()); |
| 2917 | |
| 2918 | // Scroll anchor: find a descendant with scrollAnchorPosition != 0 and pin the scroll |
| 2919 | // offset so it appears at the specified viewport edge. Only active when maintainScrollAnchor is true. |
| 2920 | if (scrollState.getMaintainScrollAnchor()) { |
| 2921 | float viewportH = _calculatedFrame.height; |
| 2922 | |
| 2923 | // Find the child with scrollAnchorPosition != 0 |