Fix broken text padding on Nodes
Summary: We were always getting LEFT explicitly, and, due to RTL support, we should be asking for START instead. Reviewed By: sriramramani Differential Revision: D3836816
This commit is contained in:
parent
3ac0bd632c
commit
3766ec9764
|
@ -12,7 +12,6 @@ package com.facebook.react.flat;
|
|||
import javax.annotation.Nullable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import android.util.SparseArray;
|
||||
|
|
|
@ -175,7 +175,7 @@ import com.facebook.react.uimanager.annotations.ReactProp;
|
|||
|
||||
Spacing padding = getPadding();
|
||||
|
||||
left += padding.get(Spacing.LEFT);
|
||||
left += padding.get(Spacing.START);
|
||||
top += padding.get(Spacing.TOP);
|
||||
|
||||
// these are actual right/bottom coordinates where this DrawCommand will draw.
|
||||
|
|
Loading…
Reference in New Issue