swap top and bottom too

BUG:333281
This commit is contained in:
Marco Martin 2014-04-11 15:52:08 +02:00
parent a0b52f4bf8
commit 6a5350786a

View File

@ -569,13 +569,13 @@ QPoint Dialog::popupPosition(QQuickItem *item, const QSize &size)
pos.y() + (item->boundingRect().height() - size.height())/2);
QPoint dialogPos;
if (d->location == Plasma::Types::BottomEdge) {
if (d->location == Plasma::Types::TopEdge) {
dialogPos = bottomPoint;
} else if (d->location == Plasma::Types::LeftEdge) {
dialogPos = rightPoint;
} else if (d->location == Plasma::Types::RightEdge) {
dialogPos = leftPoint;
} else { // Types::TopEdge
} else { // Types::BottomEdge
dialogPos = topPoint;
}