Skip to content

Commit

Permalink
Fix incorrect size issue with inline image text
Browse files Browse the repository at this point in the history
Reviewed By: andreicoman11

Differential Revision: D2834175

fb-gh-sync-id: 827d37e0128eb07f2e009479269b63c3a3549315
  • Loading branch information
Dave Miller authored and facebook-github-bot-6 committed Jan 15, 2016
1 parent 1843709 commit 2a02621
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ private static final void buildSpannedFromImageNode(
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,
Expand Down

0 comments on commit 2a02621

Please sign in to comment.