fix the toolbox positioning when zoomed out
svn path=/trunk/KDE/kdelibs/; revision=1072152
This commit is contained in:
parent
8f19e5f9cb
commit
d9a0865c3b
@ -597,13 +597,12 @@ void DesktopToolBox::showToolBox()
|
||||
|
||||
//could that cast ever fail?
|
||||
if (d->containment) {
|
||||
topRight = viewTransform().map(mapFromParent(d->containment->boundingRect().bottomRight()));
|
||||
topRight = d->containment->geometry().bottomRight();
|
||||
} else {
|
||||
topRight = boundingRect().topRight();
|
||||
}
|
||||
|
||||
|
||||
d->toolBacker->setPos(topRight.x() - d->toolBacker->size().width(), topRight.y());
|
||||
d->toolBacker->setPos(viewTransform().map(mapFromScene(topRight))-QPoint(d->toolBacker->size().width(), 0));
|
||||
} else {
|
||||
//kDebug() << "starting at" << x << startY;
|
||||
d->toolBacker->setPos(x, y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user