prev commit didn't work

This commit is contained in:
Minjae Song
2018-12-09 17:31:17 +09:00
parent a690b46456
commit 16a7d2abe7

View File

@@ -61,9 +61,8 @@ class UIItemTextButtonList(
val h = height.toFloat()
val ss = labelsList.size.toFloat()
val half_lh = UIItemTextButton.height / 2f
val vertOff = (i * h/ss - half_lh).roundInt()
println("$i -> $vertOff for height $height")
val lh = UIItemTextButton.height
val vertOff = (h/ss * i + (h/ss - lh) / 2f).roundInt()
if (!kinematic) {
UIItemTextButton(