mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert D2679408 (Only send layout update operation to nativehierarchymanager when layout actually changes)
Reviewed By: andreicoman11 Differential Revision: D2712224 fb-gh-sync-id: e6aebe6fcf54e9f36cac092cab801bb97a65dbfd
This commit is contained in:
1 parent
30a5eb51f8
commit
f69ac1eaef
2 files changed
+22
-28
No files matched your search
@@ -698,8 +698,18 @@ public class UIImplementation {
|
||||
absoluteX,
|
||||
absoluteY,
|
||||
mOperationsQueue,
|
||||
mNativeViewHierarchyOptimizer,
|
||||
eventDispatcher);
|
||||
mNativeViewHierarchyOptimizer);
|
||||
|
||||
// notify JS about layout event if requested
|
||||
if (cssNode.shouldNotifyOnLayout()) {
|
||||
eventDispatcher.dispatchEvent(
|
||||
OnLayoutEvent.obtain(
|
||||
tag,
|
||||
cssNode.getScreenX(),
|
||||
cssNode.getScreenY(),
|
||||
cssNode.getScreenWidth(),
|
||||
cssNode.getScreenHeight()));
|
||||
}
|
||||
}
|
||||
cssNode.markUpdateSeen();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user