@@ -34,7 +34,7 @@ FocusScope {
3434 property alias topMargin: gridView.topMargin
3535 property alias bottomMargin: gridView.bottomMargin
3636
37− readonly property int columns: width / delegateWidth
37+ readonly property int columns: Math.floor(width / delegateWidth)
3838 readonly property int rows: Math.ceil(gridView.model.count / root.columns)
3939
4040 property alias refreshing: pullToRefresh.refreshing
@@ -44,11 +44,10 @@ FocusScope {
4444 id: gridView
4545 anchors.fill: parent
4646 anchors.topMargin: units.gu(2)
47− leftMargin: spacing
4847 focus: true
4948
5049 readonly property int overflow: width - (root.columns * root.delegateWidth)
51− readonly property real spacing: overflow / (root.columns)
50+ readonly property real spacing: Math.ceil(overflow / root.columns)
5251
5352 cellWidth: root.delegateWidth + spacing
5453 cellHeight: root.delegateHeight