mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Fix the popup animation
This commit is contained in:
parent
22592eac70
commit
2bf6a9083e
1 changed files with 5 additions and 6 deletions
|
@ -26,7 +26,6 @@ Item {
|
|||
property Item attached: null
|
||||
property alias model: row.model
|
||||
|
||||
// TODO: make this work
|
||||
states: [
|
||||
State {
|
||||
name: "hidden"
|
||||
|
@ -38,7 +37,7 @@ Item {
|
|||
|
||||
PropertyChanges {
|
||||
target: popup
|
||||
y: timelineRoot.height + 1 // hidden
|
||||
anchors.bottomMargin: -popup.height
|
||||
visible: false
|
||||
}
|
||||
|
||||
|
@ -58,7 +57,7 @@ Item {
|
|||
|
||||
PropertyChanges {
|
||||
target: popup
|
||||
y: timelineRoot.height - popup.height
|
||||
anchors.bottomMargin: 0
|
||||
visible: true
|
||||
}
|
||||
|
||||
|
@ -85,7 +84,7 @@ Item {
|
|||
ParallelAnimation {
|
||||
NumberAnimation {
|
||||
target: popup
|
||||
property: "y"
|
||||
property: "anchors.bottomMargin"
|
||||
duration: 250
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
|
@ -108,7 +107,7 @@ Item {
|
|||
ParallelAnimation {
|
||||
NumberAnimation {
|
||||
target: popup
|
||||
property: "y"
|
||||
property: "anchors.bottomMargin"
|
||||
duration: 250
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
|
@ -134,9 +133,9 @@ Item {
|
|||
id: popup
|
||||
|
||||
radius: 20
|
||||
y: timelineRoot.height + 1
|
||||
z: 20
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: -height
|
||||
height: 75
|
||||
width: parent.width
|
||||
color: colors.window
|
||||
|
|
Loading…
Reference in a new issue