From 41bb861417ddb7ee488f23c7ec691a306b549baf Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Wed, 8 May 2024 14:43:53 +0200 Subject: [PATCH] Fixed problem in AutoHideSideBar that prevented the dock container, that contained a vertical sidebar with many tabs, from shrinking vertically --- src/AutoHideSideBar.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/AutoHideSideBar.cpp b/src/AutoHideSideBar.cpp index f08172e..7dea2fe 100644 --- a/src/AutoHideSideBar.cpp +++ b/src/AutoHideSideBar.cpp @@ -414,7 +414,14 @@ void CAutoHideSideBar::saveState(QXmlStreamWriter& s) const QSize CAutoHideSideBar::minimumSizeHint() const { QSize Size = sizeHint(); - Size.setWidth(10); + if (d->isHorizontal()) + { + Size.setWidth(0); + } + else + { + Size.setHeight(0); + } return Size; }