summaryrefslogtreecommitdiffstats
path: root/basicsuite
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-04-22 13:11:58 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2020-04-22 11:22:06 +0000
commit9d6a97f0fb5ff22a12f5c1dc0761fcbfb3490c0a (patch)
treef68a838a1d630c5114e71881547f2c762edc795d /basicsuite
parentf3bb027f6f533fde7a931b64d70f3aebc3b5f846 (diff)
Fix partially hidden icons in homescreen
The left and right side empty areas were incorrectly sized, which left first icons in the homescreen partially hidden. Use the same size as is used for margins in the gridview. Change-Id: I0a477ea11d1853e1ce8333b2afed8cd8b3719fe9 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Diffstat (limited to 'basicsuite')
-rw-r--r--basicsuite/qtwebbrowser/tqtc-qtwebbrowser/src/qml/HomeScreen.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/basicsuite/qtwebbrowser/tqtc-qtwebbrowser/src/qml/HomeScreen.qml b/basicsuite/qtwebbrowser/tqtc-qtwebbrowser/src/qml/HomeScreen.qml
index 6b53f55..2b3c2b7 100644
--- a/basicsuite/qtwebbrowser/tqtc-qtwebbrowser/src/qml/HomeScreen.qml
+++ b/basicsuite/qtwebbrowser/tqtc-qtwebbrowser/src/qml/HomeScreen.qml
@@ -390,7 +390,7 @@ Rectangle {
}
}
Rectangle {
- width: homeScreen.cellSize - homeScreen.padding / 2 - 10
+ width: (parent.width - 4 * gridView.cellWidth + homeScreen.padding) / 2
anchors {
left: parent.left
top: parent.top
@@ -404,7 +404,7 @@ Rectangle {
color: "#09102b"
}
Rectangle {
- width: homeScreen.cellSize - homeScreen.padding / 2 - 10
+ width: (parent.width - 4 * gridView.cellWidth - homeScreen.padding) / 2
anchors {
right: parent.right
top: parent.top