-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.14.0, 5.15.7, 6.2.1
-
-
c8f065e2b (dev), 3ee9488de (6.7)
Tumbler is not getting initialized properly when model has exactly 19 items in it. It shows a blank space at the top. When you move the wheel, the wrap-around numbers appear.
It is working fine with model having 17,18,20 or 21 items.
Tumbler{
anchors{
top:parent.top
bottom:parent.bottom
}
width: 200
// Somehow problem is with model size 19 (not with other odd numbers like 17,21 etc..)
model:[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95]
//Works with following model
//model:[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90]
delegate: Label {
text: modelData
opacity: 1.0 - Math.abs(Tumbler.displacement) / (Tumbler.tumbler.visibleItemCount / 2)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
}
Working fine with 5.12.8, issue seen in 5.14.x and 5.15.x