Fix incorrect size issue with inline image text

Reviewed By: andreicoman11

Differential Revision: D2834175

fb-gh-sync-id: 827d37e0128eb07f2e009479269b63c3a3549315
This commit is contained in:
Dave Miller 2016-01-15 08:33:15 -08:00 committed by facebook-github-bot-6
parent 18437093f2
commit 2a02621e74
1 changed files with 2 additions and 2 deletions

View File

@ -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,