on xenial help sign in
Adjust spacing math so columns don't get stripped off on some devices
commit1be17608d334d653535e74f3ffe46f742e3d1142 authorRodney Dawes <dobey@ubports.com> dateFri 23 Oct 2020, 12:52 (6 years ago) parent340ad9e
1 file changed+1−1
qml/Launcher/DrawerGridView.qml+1−1
qml/Launcher/DrawerGridView.qml+1−1
@@ -47,7 +47,7 @@ FocusScope {
4747 focus: true
4848
4949 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)
5151
5252 cellWidth: root.delegateWidth + spacing
5353 cellHeight: root.delegateHeight