-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.6.0 Beta, 5.7.0
-
None
-
Mageia Linux Cauldron, x86_64, gcc 5.3.1
If I change model on Tumbler, when it has 1 as currentIndex, positions of top and bottom items change.
To reproduce, run test program and click on button.
Test program:
import QtQuick 2.5 import QtQuick.Controls 2.0 ApplicationWindow { visible: true width: 640 height: 480 Rectangle { height: tumbler.implicitHeight width: tumbler.implicitWidth anchors.centerIn: parent border { color: "black" width: 1 } Tumbler { id: tumbler anchors.centerIn: parent model: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23] currentIndex: 1 } } Button { anchors.bottom: parent.bottom anchors.horizontalCenter: parent.horizontalCenter text: "Change model" onClicked: tumbler.model = [ 19, 20, 21, 22, 23 ] } }