Skip to content

Commit 189d171

Browse files
committed
fix: Capsule uses implicitWidth and implicitHeight
1 parent 4f2a49f commit 189d171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

weather-indicator/BarWidget.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Item {
2828

2929
Rectangle {
3030
anchors.centerIn: parent
31-
width: parent.width; height: parent.height
31+
width: parent.implicitWidth; height: parent.implicitHeight
3232
color: mouseArea.containsMouse ? Color.mHover : Style.capsuleColor
3333
radius: Style.radiusL
3434
border { color: Style.capsuleBorderColor; width: Style.capsuleBorderWidth }

0 commit comments

Comments
 (0)