fix: get rid of slightly jank looking resize logic

This commit is contained in:
kossLAN 2025-10-16 23:14:27 -04:00
parent fbd9c212e5
commit e33d3d574a
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8

View file

@ -120,8 +120,7 @@ Singleton {
ListView { ListView {
id: list id: list
visible: opacity > 0 visible: Layout.preferredHeight > 1
opacity: matchesLength != 0 ? 1 : 0
clip: true clip: true
cacheBuffer: 0 // works around QTBUG-131106 cacheBuffer: 0 // works around QTBUG-131106
//reuseItems: true //reuseItems: true
@ -129,13 +128,6 @@ Singleton {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: Math.min(matchesLength * delegateHeight, 500) Layout.preferredHeight: Math.min(matchesLength * delegateHeight, 500)
Behavior on opacity {
NumberAnimation {
duration: 200
easing.type: Easing.OutCubic
}
}
Behavior on Layout.preferredHeight { Behavior on Layout.preferredHeight {
NumberAnimation { NumberAnimation {
duration: 200 duration: 200