Fix scrolling when using only a few buttons
This commit is contained in:
parent
2beaf74843
commit
e7a3fb592e
|
@ -48,7 +48,7 @@ class ClickBox(
|
||||||
with(buttonsProgressBar) {
|
with(buttonsProgressBar) {
|
||||||
if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) {
|
if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) {
|
||||||
height -= supplied.toInt()
|
height -= supplied.toInt()
|
||||||
if (buttons.count() != 0) (height / buttons.count()).let {
|
if (buttons.count() != 0) (height / 8).let {
|
||||||
if (it > 0) barStage = it
|
if (it > 0) barStage = it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue