NPill: smoother animation when opening and closing (no instant width jump)
This commit is contained in:
parent
c4846cd977
commit
dae1d12b6f
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ Item {
|
||||||
readonly property int pillOverlap: iconSize * 0.5
|
readonly property int pillOverlap: iconSize * 0.5
|
||||||
readonly property int maxPillWidth: Math.max(1, textItem.implicitWidth + pillPaddingHorizontal * 2 + pillOverlap)
|
readonly property int maxPillWidth: Math.max(1, textItem.implicitWidth + pillPaddingHorizontal * 2 + pillOverlap)
|
||||||
|
|
||||||
width: iconSize + (effectiveShown ? maxPillWidth - pillOverlap : 0)
|
width: iconSize + Math.max(0, pill.width - pillOverlap)
|
||||||
height: pillHeight
|
height: pillHeight
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue