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:
parent
1d555bff22
commit
bb8d540cf7
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue