From 11311f61e9fdd994c6e48543e60eb264b8677d63 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 9 Jul 2014 11:38:13 +0200 Subject: [PATCH] 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 --- src/plasmaquick/dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 3acef1044..fb33ffa65 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -677,7 +677,7 @@ QPoint Dialog::popupPosition(QQuickItem *item, const QSize &size) if (dialogPos.x() < avail.left()) { // 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 dialogPos.setX(avail.left()); } else {