diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java index 57a9cb742a8cc9..619821eead3fd9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java @@ -286,23 +286,10 @@ public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) { } if (hasNewLayout()) { - float newLeft = Math.round(absoluteX + getLayoutX()); - float newTop = Math.round(absoluteY + getLayoutY()); - float newRight = Math.round(absoluteX + getLayoutX() + getLayoutWidth()); - float newBottom = Math.round(absoluteY + getLayoutY() + getLayoutHeight()); - - if (newLeft == mAbsoluteLeft && - newRight == mAbsoluteRight && - newTop == mAbsoluteTop && - newBottom == mAbsoluteBottom) { - return false; - } - - mAbsoluteLeft = newLeft; - mAbsoluteTop = newTop; - mAbsoluteRight = newRight; - mAbsoluteBottom = newBottom; - + mAbsoluteLeft = Math.round(absoluteX + getLayoutX()); + mAbsoluteTop = Math.round(absoluteY + getLayoutY()); + mAbsoluteRight = Math.round(absoluteX + getLayoutX() + getLayoutWidth()); + mAbsoluteBottom = Math.round(absoluteY + getLayoutY() + getLayoutHeight()); nativeViewHierarchyOptimizer.handleUpdateLayout(this); return true; } else {