mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-19 09:01:46 +08:00
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:
committed by
Ahmed El-Helw
parent
efb65e5665
commit
0adc390a19
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user