Skip to content

Commit cc169f0

Browse files
committed
Fix styles
1 parent bcf903c commit cc169f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecTaskListSpan.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ open class AztecTaskListSpan(
9494

9595
p.color = listStyle.indicatorColor
9696
p.style = Paint.Style.FILL
97-
val drawableHeight = (0.9*(p.fontMetrics.bottom - p.fontMetrics.top))
97+
val drawableHeight = (0.9 * (p.fontMetrics.bottom - p.fontMetrics.top))
9898
// Make sure the marker is correctly aligned on RTL languages
9999
val markerStartPosition: Float = x + (listStyle.indicatorMargin * dir) * 1f
100100
val d: Drawable = context.resources.getDrawable(R.drawable.ic_checkbox, null)
@@ -109,7 +109,7 @@ open class AztecTaskListSpan(
109109
} else {
110110
0.2 to 0.8
111111
}
112-
d.setBounds((leftBound - drawableHeight*startShift).toInt(), (baseline - drawableHeight*0.8).toInt(), (leftBound + drawableHeight*endShift).toInt(), (baseline + drawableHeight*0.2).toInt())
112+
d.setBounds((leftBound - drawableHeight * startShift).toInt(), (baseline - drawableHeight * 0.8).toInt(), (leftBound + drawableHeight * endShift).toInt(), (baseline + drawableHeight * 0.2).toInt())
113113
d.draw(c)
114114

115115
p.color = oldColor

0 commit comments

Comments
 (0)