diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java index 161419319..0aaaed255 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java @@ -195,7 +195,11 @@ public class FlatUIImplementation extends UIImplementation { FlatShadowNode node = (FlatShadowNode) resolveShadowNode(reactTag); if (node.mountsToView()) { mStateBuilder.ensureBackingViewIsCreated(node); - super.measure(reactTag, callback); + if (relativeToWindow) { + super.measureInWindow(reactTag, callback); + } else { + super.measure(reactTag, callback); + } return; }