Fixed small bag in computing contentSize of TextInput

Reviewed By: AaaChiuuu

Differential Revision: D5091491

fbshipit-source-id: ece8ac30b930aafc32a7994057d305025e4b032e
This commit is contained in:
Valentin Shergin 2017-05-19 11:34:41 -07:00 committed by Facebook Github Bot
parent 3f176008e8
commit f085d2bac0
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ public class ReactTextInputManager extends BaseViewManager<ReactEditText, Layout
contentWidth = mEditText.getCompoundPaddingLeft() + mEditText.getLayout().getWidth() +
mEditText.getCompoundPaddingRight();
contentHeight = mEditText.getCompoundPaddingTop() + mEditText.getLayout().getHeight() +
mEditText.getCompoundPaddingTop();
mEditText.getCompoundPaddingBottom();
}
// The event that contains the event counter and updates it must be sent first.