Fix the popup animation

This commit is contained in:
Loren Burkholder 2021-04-02 15:33:58 -04:00
parent 22592eac70
commit 2bf6a9083e

View file

@ -26,7 +26,6 @@ Item {
property Item attached: null property Item attached: null
property alias model: row.model property alias model: row.model
// TODO: make this work
states: [ states: [
State { State {
name: "hidden" name: "hidden"
@ -38,7 +37,7 @@ Item {
PropertyChanges { PropertyChanges {
target: popup target: popup
y: timelineRoot.height + 1 // hidden anchors.bottomMargin: -popup.height
visible: false visible: false
} }
@ -58,7 +57,7 @@ Item {
PropertyChanges { PropertyChanges {
target: popup target: popup
y: timelineRoot.height - popup.height anchors.bottomMargin: 0
visible: true visible: true
} }
@ -85,7 +84,7 @@ Item {
ParallelAnimation { ParallelAnimation {
NumberAnimation { NumberAnimation {
target: popup target: popup
property: "y" property: "anchors.bottomMargin"
duration: 250 duration: 250
easing.type: Easing.InOutQuad easing.type: Easing.InOutQuad
} }
@ -108,7 +107,7 @@ Item {
ParallelAnimation { ParallelAnimation {
NumberAnimation { NumberAnimation {
target: popup target: popup
property: "y" property: "anchors.bottomMargin"
duration: 250 duration: 250
easing.type: Easing.InOutQuad easing.type: Easing.InOutQuad
} }
@ -134,9 +133,9 @@ Item {
id: popup id: popup
radius: 20 radius: 20
y: timelineRoot.height + 1
z: 20 z: 20
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: -height
height: 75 height: 75
width: parent.width width: parent.width
color: colors.window color: colors.window