Fix padding with Text on Android

Summary:
@public
Text was not correctly respecting padding.  We would account for it when measuring, but then not actually apply the padding to the text.  This adds support for proper padding

Reviewed By: andreicoman11

Differential Revision: D3516692
This commit is contained in:
Dave Miller 2016-07-06 09:30:13 -07:00 committed by Ahmed El-Helw
parent 87eb779eea
commit 7562f9d6f5

View File

@ -124,7 +124,8 @@ public class RCTTextInput extends RCTVirtualText implements AndroidView, CSSNode
public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
super.onCollectExtraUpdates(uiViewOperationQueue);
if (mJsEventCount != UNSET) {
ReactTextUpdate reactTextUpdate = new ReactTextUpdate(getText(), mJsEventCount, false);
ReactTextUpdate reactTextUpdate =
new ReactTextUpdate(getText(), mJsEventCount, false, getPadding());
uiViewOperationQueue.enqueueUpdateExtraData(getReactTag(), reactTextUpdate);
}
}