MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setOnMeasureCallback

Method setOnMeasureCallback

valdi/src/valdi/runtime/Context/ViewNode.cpp:2912–2920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64