From 185613f2eecb094cd119558c807679fc34929b05 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 9 Jul 2015 15:35:46 +0200 Subject: Fix visual padding All delegate items should use availableWidth/Height instead of the whole control width/height to respect paddings. Change-Id: Ia299fab3daad6853a163c10f59e590c8fbab1783 Reviewed-by: J-P Nurmi --- src/imports/controls/BusyIndicator.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/imports/controls/BusyIndicator.qml') diff --git a/src/imports/controls/BusyIndicator.qml b/src/imports/controls/BusyIndicator.qml index f67728c5..0a16979a 100644 --- a/src/imports/controls/BusyIndicator.qml +++ b/src/imports/controls/BusyIndicator.qml @@ -52,10 +52,10 @@ AbstractBusyIndicator { id: delegate implicitWidth: 48 implicitHeight: 48 - x: (parent.width - width) / 2 - y: (parent.height - height) / 2 - width: parent.width - height: parent.height + x: control.leftPadding + (control.availableWidth - width) / 2 + y: control.topPadding + (control.availableHeight - height) / 2 + width: control.availableWidth + height: control.availableHeight opacity: control.running ? 1 : 0 Behavior on opacity { OpacityAnimator { duration: 250 } } -- cgit v1.2.3