mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 09:12:46 +08:00
Fix incorrect size issue with inline image text
Reviewed By: andreicoman11 Differential Revision: D2834175 fb-gh-sync-id: 827d37e0128eb07f2e009479269b63c3a3549315
This commit is contained in:
committed by
facebook-github-bot-6
parent
18437093f2
commit
2a02621e74
@@ -161,8 +161,8 @@ public class ReactTextShadowNode extends LayoutShadowNode {
|
||||
int start = sb.length();
|
||||
// Create our own internal ImageSpan which will allow us to correctly layout the Image
|
||||
Resources resources = node.getThemedContext().getResources();
|
||||
int height = (int) PixelUtil.toDIPFromPixel(node.getStyleHeight());
|
||||
int width = (int) PixelUtil.toDIPFromPixel(node.getStyleWidth());
|
||||
int height = (int) Math.ceil(node.getStyleHeight());
|
||||
int width = (int) Math.ceil(node.getStyleWidth());
|
||||
TextInlineImageSpan imageSpan = new TextInlineImageSpan(
|
||||
resources,
|
||||
height,
|
||||
|
||||
Reference in New Issue
Block a user