sanity check the y just as we do the x
This commit is contained in:
parent
1b2d92c085
commit
64373cf1da
@ -482,7 +482,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
|
||||
}
|
||||
}
|
||||
|
||||
kDebug() << actualItem;
|
||||
//kDebug() << actualItem;
|
||||
|
||||
if (actualItem) {
|
||||
v = viewFor(actualItem);
|
||||
@ -618,6 +618,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
|
||||
}
|
||||
|
||||
pos.rx() = qMax(0, pos.x());
|
||||
pos.ry() = qMax(0, pos.y());
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user