aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine/ScrollView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/imagine/ScrollView.qml')
-rw-r--r--src/imports/controls/imagine/ScrollView.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/imports/controls/imagine/ScrollView.qml b/src/imports/controls/imagine/ScrollView.qml
index be1da69b..64fd3ac5 100644
--- a/src/imports/controls/imagine/ScrollView.qml
+++ b/src/imports/controls/imagine/ScrollView.qml
@@ -53,6 +53,11 @@ T.ScrollView {
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
+
T.ScrollBar.vertical: ScrollBar {
parent: control
x: control.mirrored ? 0 : control.width - width
@@ -70,10 +75,6 @@ T.ScrollView {
}
background: NinePatchImage {
- x: -leftInset; y: -topInset
- width: control.width + leftInset + rightInset
- height: control.height + topInset + bottomInset
-
source: Imagine.path + "scrollview-background"
NinePatchImageSelector on source {
states: [