mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 22:41:18 +08:00
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:
committed by
Ahmed El-Helw
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user