From 3e659dd29e706537c5a8e31b79a44355f542b66f Mon Sep 17 00:00:00 2001 From: Martin Klapetek Date: Thu, 19 Dec 2013 12:53:37 +0100 Subject: [PATCH] Simply subtract the width from the edge --- src/declarativeimports/core/dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/core/dialog.cpp b/src/declarativeimports/core/dialog.cpp index df7a948e2..773f95803 100644 --- a/src/declarativeimports/core/dialog.cpp +++ b/src/declarativeimports/core/dialog.cpp @@ -269,7 +269,7 @@ QPoint DialogProxy::popupPosition(QQuickItem *item, Qt::AlignmentFlag alignment) if (menuPos.x() + width() > avail.width() - rightMargin) { // popup hits rhs if (m_location == Plasma::Types::TopEdge || m_location == Plasma::Types::BottomEdge) { - menuPos.setX(avail.width() - width() / 2 ); + menuPos.setX(avail.width() - width()); } else { menuPos.setX(pos.x() + leftPoint.x()); }