treat desktop location as bottom edge
swap edge only when the location is left or right fixes tooltip position for things in desktop, like Folder icons BUG:337112
This commit is contained in:
parent
445331bba8
commit
11311f61e9
@ -677,7 +677,7 @@ QPoint Dialog::popupPosition(QQuickItem *item, const QSize &size)
|
|||||||
|
|
||||||
if (dialogPos.x() < avail.left()) {
|
if (dialogPos.x() < avail.left()) {
|
||||||
// popup hits lhs
|
// popup hits lhs
|
||||||
if (d->location == Plasma::Types::TopEdge || d->location == Plasma::Types::BottomEdge) {
|
if (d->location != Plasma::Types::LeftEdge || d->location == Plasma::Types::RightEdge) {
|
||||||
// move it
|
// move it
|
||||||
dialogPos.setX(avail.left());
|
dialogPos.setX(avail.left());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user