Skip to content

Commit

Permalink
fix bug [多行引用显示异常 #9]
Browse files Browse the repository at this point in the history
  • Loading branch information
freedom10086 committed Jul 15, 2018
1 parent 4d69c17 commit 028b79f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class Quote extends CharacterStyle implements LeadingMarginSpan, LineHeig
private static final float STRIPE_WIDTH = HtmlView.FONT_SIZE / 5;
private static final float GAP_WIDTH = HtmlView.FONT_SIZE * 0.6f;
private static final int TEXT_COLOR = 0xff777777;
private static final float LINE_HEIGHT = 1.25f / HtmlView.LINE_HEIGHT;

public Quote() {
}
Expand Down Expand Up @@ -59,9 +58,9 @@ public void updateDrawState(TextPaint tp) {

@Override
public void chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm) {
fm.ascent *= LINE_HEIGHT;
fm.descent *= LINE_HEIGHT;
fm.top *= LINE_HEIGHT;
fm.bottom *= LINE_HEIGHT;
// fm.ascent *= LINE_HEIGHT;
// fm.descent *= LINE_HEIGHT;
// fm.top *= LINE_HEIGHT;
// fm.bottom *= LINE_HEIGHT;
}
}

0 comments on commit 028b79f

Please sign in to comment.