Skip to content

Commit

Permalink
Align inline image in nodes text
Browse files Browse the repository at this point in the history
Summary:
This is similar to facebook#6528
for the non-nodes inline images.

Reviewed By: dmmiller

Differential Revision: D3358530
  • Loading branch information
andreicoman11 authored and Ahmed El-Helw committed Dec 19, 2016
1 parent efb65e5 commit 0adc390
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void draw(
return;
}

float bottomFloat = (float) bottom;
float bottomFloat = (float) bottom - paint.getFontMetricsInt().descent;
TMP_RECT.set(x, bottomFloat - mHeight, x + mWidth, bottomFloat);

canvas.drawBitmap(bitmap, null, TMP_RECT, paint);
Expand Down

0 comments on commit 0adc390

Please sign in to comment.