mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00: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:
parent
efb65e5665
commit
0adc390a19
@ -158,7 +158,7 @@ import com.facebook.infer.annotation.Assertions;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
float bottomFloat = (float) bottom;
|
float bottomFloat = (float) bottom - paint.getFontMetricsInt().descent;
|
||||||
TMP_RECT.set(x, bottomFloat - mHeight, x + mWidth, bottomFloat);
|
TMP_RECT.set(x, bottomFloat - mHeight, x + mWidth, bottomFloat);
|
||||||
|
|
||||||
canvas.drawBitmap(bitmap, null, TMP_RECT, paint);
|
canvas.drawBitmap(bitmap, null, TMP_RECT, paint);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user