diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-15 21:30:59 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-15 21:44:15 +0200 |
commit | 227467157df427dbc6616a42a66ebfab406ef308 (patch) | |
tree | 994b33a549fb948964beb66056d07ae8def9df88 /framework/qml/People.qml | |
parent | 92ae8dcd6032b921ba3a2789c2e7781e1431f96d (diff) | |
download | kube-227467157df427dbc6616a42a66ebfab406ef308.tar.gz kube-227467157df427dbc6616a42a66ebfab406ef308.zip |
Properly anchor and scroll the peopleview
Diffstat (limited to 'framework/qml/People.qml')
-rw-r--r-- | framework/qml/People.qml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/framework/qml/People.qml b/framework/qml/People.qml index 11416a1b..5ece85f9 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | import QtQuick 2.7 | 20 | import QtQuick 2.7 |
21 | import QtQuick.Controls 2.0 | 21 | import QtQuick.Controls 2.0 |
22 | import QtQuick.Controls 1.4 as Controls | ||
23 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 |
24 | 23 | ||
25 | import org.kube.framework 1.0 as Kube | 24 | import org.kube.framework 1.0 as Kube |
@@ -95,17 +94,25 @@ Item { | |||
95 | color: Kube.Colors.viewBackgroundColor | 94 | color: Kube.Colors.viewBackgroundColor |
96 | 95 | ||
97 | Flickable { | 96 | Flickable { |
97 | id: peopleFlickable | ||
98 | 98 | ||
99 | anchors.fill: parent | 99 | anchors.fill: parent |
100 | 100 | ||
101 | ScrollBar.vertical: ScrollBar { } | 101 | ScrollBar.vertical: ScrollBar { } |
102 | contentHeight: content.height | 102 | contentHeight: content.height |
103 | clip: true | 103 | clip: true |
104 | boundsBehavior: Flickable.StopAtBounds | 104 | Kube.ScrollHelper { |
105 | flickable: peopleFlickable | ||
106 | anchors.fill: parent | ||
107 | } | ||
105 | 108 | ||
106 | Item { | 109 | Item { |
107 | id: content | 110 | id: content |
108 | 111 | ||
112 | anchors { | ||
113 | left: parent.left | ||
114 | right: parent.right | ||
115 | } | ||
109 | height: childrenRect.height | 116 | height: childrenRect.height |
110 | 117 | ||
111 | Flow { | 118 | Flow { |