cheatsheet: fix weird popup anim

This commit is contained in:
end-4
2025-07-15 20:37:36 +07:00
parent ffe1783aa3
commit 77c5923782
@@ -158,14 +158,20 @@ Scope { // Scope
spacing: 10 spacing: 10
Behavior on implicitWidth { Behavior on implicitWidth {
id: contentWidthBehavior
enabled: false
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
} }
Behavior on implicitHeight { Behavior on implicitHeight {
id: contentHeightBehavior
enabled: false
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
} }
currentIndex: tabBar.externalTrackedTab currentIndex: tabBar.externalTrackedTab
onCurrentIndexChanged: { onCurrentIndexChanged: {
contentWidthBehavior.enabled = true;
contentHeightBehavior.enabled = true;
tabBar.enableIndicatorAnimation = true; tabBar.enableIndicatorAnimation = true;
root.selectedTab = currentIndex; root.selectedTab = currentIndex;
} }