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

Method getViewport

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:341–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341Size ViewNodeTree::measureLayout(
342 float width, MeasureMode widthMode, float height, MeasureMode heightMode, LayoutDirection layoutDirection) {
343 Size measuredSize;
344 withLock([&]() {
345 if (_rootViewNode == nullptr) {
346 measuredSize = Size(0, 0);
347 } else {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected