From d66afc1fd003b5f4ea143203e422a4b0054ec0dc Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Wed, 11 Nov 2020 10:33:17 -0700 Subject: [PATCH] [RoundButton] Fix binding loop in extraSpace property --- src/declarativeimports/plasmacomponents3/RoundButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmacomponents3/RoundButton.qml b/src/declarativeimports/plasmacomponents3/RoundButton.qml index 5dda03d7d..d022690e1 100644 --- a/src/declarativeimports/plasmacomponents3/RoundButton.qml +++ b/src/declarativeimports/plasmacomponents3/RoundButton.qml @@ -28,7 +28,7 @@ T.RoundButton { contentItem: RowLayout { // This is the spacing which will make the icon a square inscribed in the circle with an extra smallspacing of margins - readonly property int extraSpace: width/2 - width/2*Math.sqrt(2)/2 + units.smallSpacing + readonly property int extraSpace: implicitWidth/2 - implicitWidth/2*Math.sqrt(2)/2 + units.smallSpacing PlasmaCore.IconItem { Layout.preferredWidth: units.iconSizes.smallMedium Layout.preferredHeight: units.iconSizes.smallMedium