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:
parent
aaab3a310a
commit
ac1f7e3b5b
8
view.cpp
8
view.cpp
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user