setX, not setY
svn path=/trunk/KDE/kdelibs/; revision=1027831
This commit is contained in:
parent
a4d591e6fd
commit
80f675df0d
@ -283,7 +283,7 @@ void ScrollWidget::ensureRectVisible(const QRectF &rect)
|
||||
if (mappedRect.left() < 0) {
|
||||
delta.setX(-mappedRect.left());
|
||||
} else if (mappedRect.right() > viewRect.right()) {
|
||||
delta.setY(viewRect.right() - mappedRect.right());
|
||||
delta.setX(viewRect.right() - mappedRect.right());
|
||||
}
|
||||
|
||||
d->animId = Animator::self()->moveItem(
|
||||
|
Loading…
Reference in New Issue
Block a user