Fix scrolling when using only a few buttons

This commit is contained in:
Username404-59 2021-05-04 18:27:51 +02:00
parent 2beaf74843
commit e7a3fb592e
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class ClickBox(
with(buttonsProgressBar) {
if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) {
height -= supplied.toInt()
if (buttons.count() != 0) (height / buttons.count()).let {
if (buttons.count() != 0) (height / 8).let {
if (it > 0) barStage = it
}
}