mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 22:43:10 +08:00
Fix UNSET problem for text alignment change
Summary: Use UNSET(-1) as default will lead wrong calculation for text alignment. Change it to Gravity.NO_GRAVITY to fix this problem. Reviewed By: fkgozali Differential Revision: D3624417 fbshipit-source-id: c116560e64600be60b2fe719f575701b00f20a97
This commit is contained in:
committed by
Facebook Github Bot 0
parent
ffb690f072
commit
5b4fb89e4c
@@ -310,7 +310,7 @@ public class ReactTextShadowNode extends LayoutShadowNode {
|
||||
|
||||
protected int mNumberOfLines = UNSET;
|
||||
protected int mFontSize = UNSET;
|
||||
protected int mTextAlign = UNSET;
|
||||
protected int mTextAlign = Gravity.NO_GRAVITY;
|
||||
|
||||
private float mTextShadowOffsetDx = 0;
|
||||
private float mTextShadowOffsetDy = 0;
|
||||
|
||||
Reference in New Issue
Block a user