HeaderView: Fix padding

This commit is contained in:
2021-03-18 22:23:58 -05:00
parent 298bf1a538
commit 071b6bd090
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -122,7 +122,7 @@ class HeaderView(
repeat(buttonCount) { index -> repeat(buttonCount) { index ->
rect.set(0f, 0f, width, height) rect.set(0f, 0f, width, height)
rect.offset(canvas.width.toFloat(), 0f) rect.offset(canvas.width.toFloat() - dp(3.0f), 0f)
if (isReversed) rect.offset(-(index + 1) * width, 0f) if (isReversed) rect.offset(-(index + 1) * width, 0f)
else rect.offset((index - buttonCount) * width, 0f) else rect.offset((index - buttonCount) * width, 0f)