when a new activity is added, don't move more than necessary to show it

this seems to fix dragging the view around too :)
BUG: 164545
please backport.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838477
This commit is contained in:
Chani Armitage 2008-07-27 22:38:58 +00:00
parent aaab3a310a
commit ac1f7e3b5b

View File

@ -69,7 +69,13 @@ public:
<< "associated screen is" << containment->screen();
emit q->sceneRectAboutToChange();
q->setSceneRect(containment->sceneBoundingRect());
if (q->transform().isIdentity()) { //we're not zoomed out
q->setSceneRect(containment->sceneBoundingRect());
} else {
//kDebug() << "trying to show the containment nicely";
q->ensureVisible(containment->sceneBoundingRect());
//q->centerOn(containment);
}
emit q->sceneRectChanged();
}