Fix TextInput padding on Nodes
Summary: Fix TextInput padding on Nodes. We used to not call super and used to manually do the setting of padding. This stops us from running the same logic that non-Nodes runs (we bypassed it), so this fixes it. Reviewed By: astreet Differential Revision: D3825227
This commit is contained in:
parent
558f934f44
commit
3061606fe6
|
@ -18,7 +18,6 @@ import android.util.TypedValue;
|
|||
import android.view.ViewGroup;
|
||||
import android.widget.EditText;
|
||||
|
||||
import com.facebook.csslayout.CSSDirection;
|
||||
import com.facebook.csslayout.CSSMeasureMode;
|
||||
import com.facebook.csslayout.CSSNodeAPI;
|
||||
import com.facebook.csslayout.MeasureOutput;
|
||||
|
@ -154,10 +153,9 @@ public class RCTTextInput extends RCTVirtualText implements AndroidView, CSSNode
|
|||
|
||||
@Override
|
||||
public void setPadding(int spacingType, float padding) {
|
||||
if (getPadding().set(spacingType, padding)) {
|
||||
mPaddingChanged = true;
|
||||
dirty();
|
||||
}
|
||||
super.setPadding(spacingType, padding);
|
||||
mPaddingChanged = true;
|
||||
dirty();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue