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:
Alon Schwarz authored and facebook-github-bot-7 committed 2015-12-02 06:46:28 -08:00
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();
}