Skip to content

Commit

Permalink
Improved checkbox scaling.
Browse files Browse the repository at this point in the history
  • Loading branch information
khaykov committed Sep 27, 2023
1 parent f9c6347 commit bba17c2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ open class AztecTaskListSpan(
} else {
0.2 to 0.8
}
d.setBounds((leftBound - drawableHeight * startShift).toInt(), (baseline - drawableHeight * 0.8).toInt(), (leftBound + drawableHeight * endShift).toInt(), (baseline + drawableHeight * 0.2).toInt())

d.setBounds((leftBound - drawableHeight * startShift).toInt().coerceAtLeast(0),
(baseline - drawableHeight * 0.8).toInt(),
(leftBound + drawableHeight * endShift).toInt(),
(baseline + drawableHeight * 0.2).toInt())
d.draw(c)

p.color = oldColor
Expand Down

0 comments on commit bba17c2

Please sign in to comment.