Skip to content

Commit c311096

Browse files
hoangpham95facebook-github-bot
hoangpham95
authored andcommitted
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 #13203 Differential Revision: D4795809 Pulled By: hramos fbshipit-source-id: a7c6845abe7472dc7ad2f1f978a20d02fe49eda8
1 parent 1d36700 commit c311096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ public boolean isVirtual() {
135135
@Override
136136
public TextInlineImageSpan buildInlineImageSpan() {
137137
Resources resources = getThemedContext().getResources();
138-
int height = (int) Math.ceil(mWidth);
139-
int width = (int) Math.ceil(mHeight);
138+
int width = (int) Math.ceil(mWidth);
139+
int height = (int) Math.ceil(mHeight);
140140
return new FrescoBasedReactTextInlineImageSpan(
141141
resources,
142142
height,

0 commit comments

Comments
 (0)