don't cover the applet when the popup if from a top panel
BUG: 177621 svn path=/trunk/KDE/kdelibs/; revision=896197
This commit is contained in:
parent
dbce22540c
commit
be2ae212ed
@ -494,11 +494,11 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s)
|
|||||||
screenGeometry((pv && pv->containment()) ? pv->containment()->screen() : -1);
|
screenGeometry((pv && pv->containment()) ? pv->containment()->screen() : -1);
|
||||||
//kDebug() << "==> rect for" << (pv ? pv->containment()->screen() : -1) << "is" << screenRect;
|
//kDebug() << "==> rect for" << (pv ? pv->containment()->screen() : -1) << "is" << screenRect;
|
||||||
|
|
||||||
if (pos.rx() + s.width() > screenRect.right()) {
|
if (loc != LeftEdge && pos.rx() + s.width() > screenRect.right()) {
|
||||||
pos.rx() -= ((pos.rx() + s.width()) - screenRect.right());
|
pos.rx() -= ((pos.rx() + s.width()) - screenRect.right());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pos.ry() + s.height() > screenRect.bottom()) {
|
if (loc != TopEdge && pos.ry() + s.height() > screenRect.bottom()) {
|
||||||
pos.ry() -= ((pos.ry() + s.height()) - screenRect.bottom());
|
pos.ry() -= ((pos.ry() + s.height()) - screenRect.bottom());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user