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

Method setZIndex

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

Source from the content-addressed store, hash-verified

3000 if (std::abs(delta) > 0.5f) {
3001 auto offset = scrollState.getDirectionAgnosticContentOffset();
3002 offset.y = targetY;
3003 scrollState.updateDirectionAgnosticContentOffset(offset, offset);
3004 offsetY = targetY;
3005 updateResult.changed = true;
3006 scrollState.setNeedsSyncWithView(true);
3007 }
3008 }
3009 }
3010
3011 // 2) Refresh the anchor to the node at the current viewport center.
3012 refreshPreserveAnchor(this, scrollState, offsetY, viewportH);
3013 }
3014
3015 // Sticky headers: refresh per-child measurement cache from the current layout, then
3016 // reposition. Called on every layout pass to survive content-size changes (section

Callers

nothing calls this directly

Calls 1

setHasChildWithZIndexMethod · 0.80

Tested by

no test coverage detected