Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.1
-
None
-
Windows 7 / Mac ML
-
qtdeclarative/stable: fd9d0ea
Description
When using GridView within a resizable window, the delegates get cut off at a random point in their horizontalCenter.
See here: http://www.youtube.com/watch?v=dBJkzE4sh1Y
Notice that the red rectangles do not jump down to the next line immediately once there isn't enough space to display them. The Grid positioner element does this perfectly though.
In my example, the Grids cellWidth is set to 125 while the rectangle delegates width is set to 120.
Heres a much simpler example:
When in QMLScene, drag the right side of the window to the left and watch how you have to be more than 50% of the way into a rect in order for it to drop down to another line.
import QtQuick 2.0 Rectangle { // Main Window id: mainWindowBase width: 300 height: 200 color: "transparent" GridView { id: gridd width: parent.width height: parent.height model: contactModel delegate: Rectangle { height: gridd.cellHeight - 5 width: gridd.cellWidth - 5 color: kolor Text { id: label text: qsTr(name) anchors.centerIn: parent } } } ListModel { id: contactModel ListElement { name: "Jim Williams" kolor: "yellow" } ListElement { name: "John Brown" kolor: "red" } ListElement { name: "Bill Smyth" kolor: "green" } ListElement { name: "Sam Wise" kolor: "blue" } } }