From c44c3b30e250d35650cff68794b1737d3f2d34eb Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 13 Jun 2014 13:54:23 +0200 Subject: [PATCH] off by one in positioning position the dialog at exactly the right-most edge of the screen it was off by exactly one pixel --- src/plasmaquick/dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index df9bcc8cb..1d0907143 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -682,7 +682,7 @@ QPoint Dialog::popupPosition(QQuickItem *item, const QSize &size) if (dialogPos.x() + size.width() > avail.right()) { // popup hits rhs if (d->location == Plasma::Types::TopEdge || d->location == Plasma::Types::BottomEdge) { - dialogPos.setX(avail.right() - size.width()); + dialogPos.setX(avail.right() - size.width() + 1); } else { dialogPos.setX(leftPoint.x()); } @@ -701,7 +701,7 @@ QPoint Dialog::popupPosition(QQuickItem *item, const QSize &size) if (d->location == Plasma::Types::TopEdge || d->location == Plasma::Types::BottomEdge) { dialogPos.setY(topPoint.y()); } else { - dialogPos.setY(avail.bottom() - size.height()); + dialogPos.setY(avail.bottom() - size.height() + 1); } }