[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [mauikit] src/controls: center mauikit gridview on mboiles
From:       Camilo higuita <null () kde ! org>
Date:       2018-09-29 0:41:29
Message-ID: E1g63K5-00014L-U3 () code ! kde ! org
[Download RAW message or body]

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
 		{
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic