Skip to content

Commit 7500ba7

Browse files
committed
fix
1 parent 44b44c7 commit 7500ba7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/src/main/java/com/github/texthelper/TextViewStyleHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private static class TextTagSpan extends ReplacementSpan {
376376
public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) {
377377
float height = bottom - top;
378378
float textHeight = height * textSizeRatio;
379-
float minus = (height - textHeight) / 1.0f;
379+
float minus = (height - textHeight) / 2.0f;
380380
RectF rect = new RectF(x, top + minus, x + measureText(paint, text, start, end), bottom - minus);
381381
paint.setColor(bgColor);
382382

0 commit comments

Comments
 (0)