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:
Mengjue Wang 2016-07-27 10:24:57 -07:00 committed by Facebook Github Bot 0
parent ffb690f072
commit 5b4fb89e4c
1 changed files with 1 additions and 1 deletions

View File

@ -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;