dynamiclist example used different delegate height for anim and static
authorMartin Jones <martin.jones@nokia.com>
Wed, 20 Jun 2012 05:57:49 +0000 (15:57 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 21 Jun 2012 23:26:29 +0000 (01:26 +0200)
so delegates added later weren't the same size as the original items.
Set a better value for both.

Task-number: QTBUG-26206
Change-Id: Ic9d32528eb43a77e23e3a619834da098f177b5d6
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
examples/quick/modelviews/listview/dynamiclist.qml

index 0bd4e05..12b1e74 100644 (file)
@@ -88,7 +88,7 @@ Rectangle {
         Item {
 //! [0]
             id: delegateItem
-            width: listView.width; height: 100
+            width: listView.width; height: 80
             clip: true
 
             Column {
@@ -173,7 +173,7 @@ Rectangle {
 //! [1]
             ListView.onAdd: SequentialAnimation {
                 PropertyAction { target: delegateItem; property: "height"; value: 0 }
-                NumberAnimation { target: delegateItem; property: "height"; to: 55; duration: 250; easing.type: Easing.InOutQuad }
+                NumberAnimation { target: delegateItem; property: "height"; to: 80; duration: 250; easing.type: Easing.InOutQuad }
             }
 
             ListView.onRemove: SequentialAnimation {