summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-09-24 14:53:55 (GMT)
committerAleix Pol <aleixpol@kde.org>2015-09-24 14:53:55 (GMT)
commit91bfc98ff4dbf9b7662cdb1ddcbdb5de2c38f816 (patch)
treef934a41d7e17f194c191c9418ce6766b89028f6c
parent757ec86e410086451dfe4055deda8063a384da1b (diff)
Make sure the banner is not floating on the screen (and weirdly cut)
-rw-r--r--discover/qml/BrowsingPage.qml7
-rw-r--r--discover/qml/FeaturedBanner.qml7
2 files changed, 5 insertions, 9 deletions
diff --git a/discover/qml/BrowsingPage.qml b/discover/qml/BrowsingPage.qml
index f4f7e19..66d2f72 100644
--- a/discover/qml/BrowsingPage.qml
+++ b/discover/qml/BrowsingPage.qml
@@ -26,6 +26,7 @@ import org.kde.kquickcontrolsaddons 2.0
Item {
readonly property string title: ""
readonly property string icon: "go-home"
+ clip: true
ColumnLayout
{
width: app.actualWidth
@@ -37,14 +38,16 @@ Item {
FeaturedBanner {
Layout.fillWidth: true
- clip: true
anchors.horizontalCenter: parent.horizontalCenter
- height: 310
+ Layout.preferredHeight: 310
}
CategoryDisplay {
Layout.fillWidth: true
Layout.fillHeight: true
}
+ Item {
+ Layout.fillHeight: true
+ }
}
}
diff --git a/discover/qml/FeaturedBanner.qml b/discover/qml/FeaturedBanner.qml
index 3a5d967..e086311 100644
--- a/discover/qml/FeaturedBanner.qml
+++ b/discover/qml/FeaturedBanner.qml
@@ -53,13 +53,6 @@ Information {
}
source: endsWith(modelData.image, ".qml") ? modelData.image : "qrc:/qml/FeaturedImage.qml"
-
- Rectangle
- {
- anchors.fill: parent
- color: modelData.color
- border.color: "cyan"
- }
}
Rectangle {