on xenial help sign in
todo--
c7f09fcAlbert Astals
qml/Dash/ScopesOverview.qml+1
@@ -206,6 +206,7 @@ Item {
206 if (index == 0) {
206 if (index == 0) {
207 item.scopeWidth = root.width;
207 item.scopeWidth = root.width;
208 item.scopeHeight = root.height;
208 item.scopeHeight = root.height;
209+ item.appliedScale = Qt.binding(function() { return loader.scale })
209 } else if (index == 1) {
210 } else if (index == 1) {
210 item.extraHeight = bottomBar.height;
211 item.extraHeight = bottomBar.height;
211 }
212 }
qml/Dash/ScopesOverviewFavourites.qml+4−4
@@ -25,12 +25,12 @@ ListView {
25 property var cardTool: null
25 property var cardTool: null
26 property real scopeHeight: 0
26 property real scopeHeight: 0
27 property real scopeWidth: 0
27 property real scopeWidth: 0
28+ property real appliedScale: 1
28
29
29 orientation: ListView.Horizontal
30 orientation: ListView.Horizontal
30− // TODO root.parent.scale
31 // TODO current item
31 // TODO current item
32
32
33− spacing: units.gu(2) / root.parent.scale
33+ spacing: units.gu(2) / appliedScale
34
34
35 delegate: Loader {
35 delegate: Loader {
36 id: loader
36 id: loader
@@ -38,8 +38,8 @@ ListView {
38
38
39 sourceComponent: cardTool.cardComponent
39 sourceComponent: cardTool.cardComponent
40 onLoaded: {
40 onLoaded: {
41− item.fixedHeaderHeight = Qt.binding(function() { return cardTool.headerHeight / root.parent.scale; });
41+ item.fixedHeaderHeight = Qt.binding(function() { return cardTool.headerHeight / appliedScale; });
42− item.fontScale = Qt.binding(function() { return 1 / root.parent.scale; });
42+ item.fontScale = Qt.binding(function() { return 1 / appliedScale; });
43 item.height = Qt.binding(function() { return root.scopeHeight; });
43 item.height = Qt.binding(function() { return root.scopeHeight; });
44 item.width = Qt.binding(function() { return root.scopeWidth; });
44 item.width = Qt.binding(function() { return root.scopeWidth; });
45 item.cardData = Qt.binding(function() { return model; });
45 item.cardData = Qt.binding(function() { return model; });