turn the clip on on appear/disappear animation

This commit is contained in:
Marco Martin 2011-11-10 16:52:55 +01:00
parent 8138287161
commit d19932168f

View File

@ -26,7 +26,10 @@ Item{
height: (tools && enabled) ? theme.defaultFont.mSize.height*2 + frameSvg.margins.top + frameSvg.margins.bottom : 0
visible: height > 0
Behavior on height {
PropertyAnimation { duration: 250 }
PropertyAnimation {
id: heightAnimation
duration: 250
}
}
z: 1000
@ -130,7 +133,7 @@ Item{
}
Item {
clip: containerAOpacityAnimation.running
clip: containerAOpacityAnimation.running || heightAnimation.running
anchors {
fill: parent
leftMargin: frameSvg.margins.left/2