From 983afc4d1e9e337fa45edbdaabd77bbd738ab374 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Wed, 2 Nov 2022 07:29:45 +0100 Subject: [PATCH] Fixed wrong size calculation in CAutoHideDockContainer updateSize() function --- src/AutoHideDockContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoHideDockContainer.cpp b/src/AutoHideDockContainer.cpp index d84d605..52e9f09 100644 --- a/src/AutoHideDockContainer.cpp +++ b/src/AutoHideDockContainer.cpp @@ -228,7 +228,7 @@ void CAutoHideDockContainer::updateSize() switch (sideBarLocation()) { case SideBarLocation::Top: - resize(rect.width(), qMin(rect.height(), d->Size.height() - ResizeMargin)); + resize(rect.width(), qMin(rect.height() - ResizeMargin, d->Size.height())); move(rect.topLeft()); break; @@ -248,7 +248,7 @@ void CAutoHideDockContainer::updateSize() case SideBarLocation::Bottom: { - resize(rect.width(), qMin(rect.height(), d->Size.height() - ResizeMargin)); + resize(rect.width(), qMin(rect.height() - ResizeMargin, d->Size.height())); QPoint p = rect.bottomLeft(); p.ry() -= (height() - 1); move(p);