aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine/SwipeView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/imagine/SwipeView.qml')
-rw-r--r--src/imports/controls/imagine/SwipeView.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/imports/controls/imagine/SwipeView.qml b/src/imports/controls/imagine/SwipeView.qml
index 5b1a0ae6..6c946715 100644
--- a/src/imports/controls/imagine/SwipeView.qml
+++ b/src/imports/controls/imagine/SwipeView.qml
@@ -52,6 +52,11 @@ T.SwipeView {
rightPadding: background ? background.rightPadding : 0
bottomPadding: background ? background.bottomPadding : 0
+ topInset: background ? -background.topInset || 0 : 0
+ leftInset: background ? -background.leftInset || 0 : 0
+ rightInset: background ? -background.rightInset || 0 : 0
+ bottomInset: background ? -background.bottomInset || 0 : 0
+
contentItem: ListView {
model: control.contentModel
interactive: control.interactive
@@ -69,10 +74,6 @@ T.SwipeView {
}
background: NinePatchImage {
- x: -leftInset; y: -topInset
- width: control.width + leftInset + rightInset
- height: control.height + topInset + bottomInset
-
source: Imagine.url + "swipeview-background"
NinePatchImageSelector on source {
states: [