aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/SwipeView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/SwipeView.qml')
-rw-r--r--src/imports/controls/SwipeView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/SwipeView.qml b/src/imports/controls/SwipeView.qml
index ad8885d3..0391c842 100644
--- a/src/imports/controls/SwipeView.qml
+++ b/src/imports/controls/SwipeView.qml
@@ -41,9 +41,9 @@ import QtQuick.Templates 2.5 as T
T.SwipeView {
id: control
- implicitWidth: Math.max(background ? background.implicitWidth : 0,
+ implicitWidth: Math.max(implicitBackgroundWidth,
contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(background ? background.implicitHeight : 0,
+ implicitHeight: Math.max(implicitBackgroundHeight,
contentHeight + topPadding + bottomPadding)
contentItem: ListView {