Better y position for inline image span

This commit is contained in:
Stephen Paul Weber 2024-05-24 03:34:05 +02:00 committed by Arne
parent 8d5cfd73e9
commit 233f440374

View file

@ -46,7 +46,7 @@ public class InlineImageSpan extends ImageSpan {
Drawable b = getDrawable();
canvas.save();
int transY = 0;
int transY = bottom - ((int) (dHeight * mRatio));
if (mVerticalAlignment == ALIGN_BASELINE) {
transY -= paint.getFontMetricsInt().descent;
}