1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-27 22:04:01 +03:00

fix missing calculation for behavingAsPlasmaPanel

This commit is contained in:
Michail Vourlakos 2020-03-01 17:37:03 +02:00
parent 9d30eb6257
commit 72992b8bf5

View File

@ -604,7 +604,7 @@ void Positioner::setSlideOffset(int offset)
slidedTopLeft = {m_validGeometry.x(), boundedY};
} else if (m_view->location() == Plasma::Types::RightEdge) {
int boundedX = qMax(m_view->screenGeometry().right() - 1, m_validGeometry.x() + qAbs(m_slideOffset));
int boundedX = qMin(m_view->screenGeometry().right() - 1, m_validGeometry.x() + qAbs(m_slideOffset));
slidedTopLeft = {boundedX, m_validGeometry.y()};
} else if (m_view->location() == Plasma::Types::LeftEdge) {