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
2015-12-02 05:50:34 -08:00
committed by facebook-github-bot-7
parent 30a5eb51f8
commit f69ac1eaef
2 changed files with 22 additions and 28 deletions

View File

@@ -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();
}