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

Method getRtlOffsetX

valdi/src/valdi/runtime/Context/ViewNodeScrollState.cpp:115–117  ·  view source on GitHub ↗

In RTL mode with overflow enabled, Yoga lays out from right to left and items that overflow end up having a negative position. This will contain the offset that need to be applied so that items start at x=0 instead of x=-rtlOffsetX.

Source from the content-addressed store, hash-verified

113// contain the offset that need to be applied so that items start at x=0
114// instead of x=-rtlOffsetX.
115float ViewNodeScrollState::getRtlOffsetX() const {
116 return _rtlOffsetX;
117}
118
119static float applyCircularScroll(
120 int circularRatioInt, float contentOffset, float contentSize, float viewportSize, float pointScale) {

Callers 2

getRtlScrollOffsetXMethod · 0.80
layoutFinishedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected