Solve width binding loop and messed up height for UpdateNotification

This commit is contained in:
Bart De Vries 2021-09-28 14:36:37 +02:00
parent 4a20959522
commit b4d67ffeb4

View File

@ -33,9 +33,8 @@ Rectangle {
color: Kirigami.Theme.activeTextColor
width: feedUpdateCountLabel.width + 3 * Kirigami.Units.largeSpacing +
indicator.width + (showAbortButton ? abortButton.implicitWidth + Kirigami.Units.largeSpacing : 0)
height: indicator.height
implicitWidth: feedUpdateCountLabel.implicitWidth + 3 * Kirigami.Units.largeSpacing + indicator.implicitWidth + (showAbortButton ? abortButton.implicitWidth + Kirigami.Units.largeSpacing : 0)
implicitHeight: Math.max(Math.max(indicator.implicitHeight, feedUpdateCountLabel.implicitHeight), showAbortButton ? abortButton.implicitHeight + Kirigami.Units.largeSpacing : 0)
visible: opacity > 0
opacity: 0