The width and height should be in the revsersed order.

Summary:
Inspired by #13191

Creating a test app with spannable `TextView`, and observe the text width/height
Closes https://github.com/facebook/react-native/pull/13203

Differential Revision: D4795809

Pulled By: hramos

fbshipit-source-id: a7c6845abe7472dc7ad2f1f978a20d02fe49eda8
This commit is contained in:
hoangpham95 2017-03-29 11:05:26 -07:00 committed by Facebook Github Bot
parent 1d367004e9
commit c3110963f2
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ public class FrescoBasedReactTextInlineImageShadowNode extends ReactTextInlineIm
@Override
public TextInlineImageSpan buildInlineImageSpan() {
Resources resources = getThemedContext().getResources();
int height = (int) Math.ceil(mWidth);
int width = (int) Math.ceil(mHeight);
int width = (int) Math.ceil(mWidth);
int height = (int) Math.ceil(mHeight);
return new FrescoBasedReactTextInlineImageSpan(
resources,
height,