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

Method setHorizontalScroll

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

Source from the content-addressed store, hash-verified

3217}
3218
3219void ViewNode::setUpdatingScrollSpecs(bool updatingScrollSpecs) {
3220 _flags[kUpdatingScrollSpecs] = updatingScrollSpecs;
3221}
3222
3223bool ViewNode::isUpdatingScrollSpecs() const {
3224 return _flags[kUpdatingScrollSpecs];
3225}
3226
3227void ViewNode::applyFrame(ViewTransactionScope& viewTransactionScope,
3228 const SharedAnimator& animator,
3229 const Frame& frame,
3230 bool notifyAssetHandler) const {
3231 if (!hasParent() || !hasView()) {
3232 // Root node doesn't need to call onViewFrameChanged.
3233 // Its frame is driven by native code.
3234 return;
3235 }
3236
3237 if (parentManagesChildFrames()) {
3238 if (notifyAssetHandler && _assetHandler != nullptr) {
3239 _assetHandler->onContainerSizeChanged(frame.width, frame.height);
3240 }
3241 return;

Callers 1

TEST_PFunction · 0.80

Calls 4

setFlexDirectionMethod · 0.80
getIsHorizontalMethod · 0.80
setIsHorizontalMethod · 0.80
setNeedsSyncWithViewMethod · 0.80

Tested by 1

TEST_PFunction · 0.64