mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 22:42:05 +08:00
call super instead of self
Summary: Call super.setPadding. Calling the overriden version will cause stack overflow. Differential Revision: D4096141
This commit is contained in:
committed by
Ahmed El-Helw
parent
242f5e9198
commit
3fff811c57
@@ -103,7 +103,7 @@ import com.facebook.react.uimanager.ViewManager;
|
||||
@Override
|
||||
public void setPadding(int spacingType, float padding) {
|
||||
if (getPadding(spacingType) != padding) {
|
||||
setPadding(spacingType, padding);
|
||||
super.setPadding(spacingType, padding);
|
||||
mPaddingChanged = true;
|
||||
dirty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user