aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/PageIndicator.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-04-19 21:55:37 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-23 07:49:29 +0000
commit12e22e333d99d1a2fe9d878bb86108c87626e7ec (patch)
treea4a0f7ec75a8c858d33197506927e082f29d3262 /src/imports/controls/PageIndicator.qml
parent31998a21d1ba1ea90a653696225e52f53f256c87 (diff)
Take background insets into account
Task-number: QTBUG-60156 Change-Id: I11f59a67f5a319ac5a4eae9b8ccea5d16a983de2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/PageIndicator.qml')
-rw-r--r--src/imports/controls/PageIndicator.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/PageIndicator.qml b/src/imports/controls/PageIndicator.qml
index 7d9fbca7..6985919b 100644
--- a/src/imports/controls/PageIndicator.qml
+++ b/src/imports/controls/PageIndicator.qml
@@ -42,9 +42,9 @@ import QtQuick.Templates 2.5 as T
T.PageIndicator {
id: control
- implicitWidth: Math.max(implicitBackgroundWidth,
+ implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight,
+ implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6