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:
parent
1d367004e9
commit
c3110963f2
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue