on xenial help sign in
Adjust spacing math so columns don't get stripped off on some devices
1be1760Rodney Dawes
qml/Launcher/DrawerGridView.qml+1−1
@@ -47,7 +47,7 @@ FocusScope {
47 focus: true
47 focus: true
48
48
49 readonly property int overflow: width - (root.columns * root.delegateWidth)
49 readonly property int overflow: width - (root.columns * root.delegateWidth)
50− readonly property real spacing: Math.ceil(overflow / root.columns)
50+ readonly property real spacing: Math.floor(overflow / root.columns)
51
51
52 cellWidth: root.delegateWidth + spacing
52 cellWidth: root.delegateWidth + spacing
53 cellHeight: root.delegateHeight
53 cellHeight: root.delegateHeight