Fix HButtonContent when no icon

This commit is contained in:
miruka
2020-07-20 18:52:44 -04:00
parent e62d99c3cc
commit 595714f9f6
6 changed files with 15 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ HRowLayout {
Behavior on opacity { HNumberAnimation {} }
Item {
visible: button.icon.name || button.loading
visible: Boolean(button.icon.name || button.loading)
Layout.preferredWidth:
button.loading ? busyIndicatorLoader.width : icon.width