fix: show full text when provided for iconbutton

This commit is contained in:
talksik
2025-04-29 09:25:16 -07:00
parent 6fef23015a
commit 721225606f
+1 -1
View File
@@ -8,7 +8,7 @@ Button {
font.family: Fonts.dotrice
font.bold: true
implicitWidth: Math.min(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding)
implicitWidth: control.text !== "" ? Math.max(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding) : Math.min(implicitBackgroundWidth + leftInset + rightInset, implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.min(implicitBackgroundHeight + topInset + bottomInset, implicitContentHeight + topPadding + bottomPadding)
required property string source