From kde-commits Sat Sep 29 00:41:29 2018 From: Camilo higuita Date: Sat, 29 Sep 2018 00:41:29 +0000 To: kde-commits Subject: [mauikit] src/controls: center mauikit gridview on mboiles Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=153851175607579 Git commit 187374c5e5ef7ca1bdfda4a55bab8080bd05b589 by Camilo higuita. Committed on 29/09/2018 at 00:41. Pushed by camiloh into branch 'master'. center mauikit gridview on mboiles M +8 -1 src/controls/GridView.qml https://commits.kde.org/mauikit/187374c5e5ef7ca1bdfda4a55bab8080bd05b589 diff --git a/src/controls/GridView.qml b/src/controls/GridView.qml index 52050d7..cefcd3d 100644 --- a/src/controls/GridView.qml +++ b/src/controls/GridView.qml @@ -56,6 +56,13 @@ Item { id: gridView = + anchors + { + left: parent.left + right: parent.right + leftMargin: scrollBar.visible ? 0 : scrollBar.width + } + = flow: GridView.FlowLeftToRight clip: true focus: true @@ -65,7 +72,6 @@ Item Math.floor(parent.width/cellWidth))*cellWidth : parent.width height: parent.height - cellWidth: control.cellWidth = cellHeight: control.cellHeight // maximumFlickVelocity: albumSize*8 @@ -77,6 +83,7 @@ Item = ScrollBar.vertical: ScrollBar{ id:scrollBar; visible: !isMobile} onWidthChanged: adaptContent? control.adaptGrid() : undefined + = = MouseArea {