Use markUpdated instead of dirty setPadding in nodes

Summary: setPadding already calls dirty, and we should only be calling dirty on nodes that have measure functions.

Reviewed By: emilsjolander

Differential Revision: D4205148
This commit is contained in:
Andy Street authored and Ahmed El-Helw committed 2016-12-19 13:40:35 -08:00
1 parent 1d555bff22
commit bb8d540cf7
3 files changed
+3 -3

No files matched your search

@@ -106,7 +106,7 @@ import com.facebook.react.views.art.ARTVirtualNode;
if (getPadding(spacingType) != padding) {
super.setPadding(spacingType, padding);
mPaddingChanged = true;
dirty();
markUpdated();
}
}
@@ -89,7 +89,7 @@ class FlatReactModalShadowNode extends FlatShadowNode implements AndroidView {
if (getPadding(spacingType) != padding) {
super.setPadding(spacingType, padding);
mPaddingChanged = true;
dirty();
markUpdated();
}
}
}
@@ -104,7 +104,7 @@ import com.facebook.react.uimanager.ViewManager;
if (getPadding(spacingType) != padding) {
super.setPadding(spacingType, padding);
mPaddingChanged = true;
dirty();
markUpdated();
}
}