mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 09:12:06 +08:00
Only send layout update operation to nativehierarchymanager when layout actually changes.
Reviewed By: andreicoman11 Differential Revision: D2679408 fb-gh-sync-id: 7f0a972e9e12f70402e2d285edef458a61ca1c39
This commit is contained in:
committed by
facebook-github-bot-9
parent
06e514076b
commit
0c8850f3a7
@@ -814,18 +814,8 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
absoluteX,
|
||||
absoluteY,
|
||||
mOperationsQueue,
|
||||
mNativeViewHierarchyOptimizer);
|
||||
|
||||
// notify JS about layout event if requested
|
||||
if (cssNode.shouldNotifyOnLayout()) {
|
||||
mEventDispatcher.dispatchEvent(
|
||||
OnLayoutEvent.obtain(
|
||||
tag,
|
||||
cssNode.getScreenX(),
|
||||
cssNode.getScreenY(),
|
||||
cssNode.getScreenWidth(),
|
||||
cssNode.getScreenHeight()));
|
||||
}
|
||||
mNativeViewHierarchyOptimizer,
|
||||
mEventDispatcher);
|
||||
}
|
||||
cssNode.markUpdateSeen();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user