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()); }