Align inline image in nodes text

Summary:
This is similar to https://github.com/facebook/react-native/pull/6528
for the non-nodes inline images.

Reviewed By: dmmiller

Differential Revision: D3358530
This commit is contained in:
Andrei Coman 2016-05-30 03:50:29 -07:00 committed by Ahmed El-Helw
parent efb65e5665
commit 0adc390a19
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ import com.facebook.infer.annotation.Assertions;
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);