clip only when animating

This commit is contained in:
Marco Martin 2012-08-08 15:02:18 +02:00
parent 1cbd32e9f9
commit fefa42c951

View File

@ -267,7 +267,6 @@ Item {
transitionEnded(); transitionEnded();
} }
clip: true
Item { Item {
id: actualContainer id: actualContainer
@ -365,6 +364,7 @@ Item {
// Called when a transition has started. // Called when a transition has started.
function transitionStarted() function transitionStarted()
{ {
container.clip = true
transitionAnimationRunning = true; transitionAnimationRunning = true;
internal.ongoingTransitionCount++; internal.ongoingTransitionCount++;
if (actualRoot.visible) { if (actualRoot.visible) {
@ -375,6 +375,7 @@ Item {
// Called when a transition has ended. // Called when a transition has ended.
function transitionEnded() function transitionEnded()
{ {
container.clip = false
if (state != "") if (state != "")
state = "Hidden"; state = "Hidden";
if (actualRoot.visible) if (actualRoot.visible)