Skip to content

Commit 41bb861

Browse files
Fixed problem in AutoHideSideBar that prevented the dock container, that contained a vertical sidebar with many tabs, from shrinking vertically
1 parent 8da0713 commit 41bb861

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/AutoHideSideBar.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,14 @@ void CAutoHideSideBar::saveState(QXmlStreamWriter& s) const
414414
QSize CAutoHideSideBar::minimumSizeHint() const
415415
{
416416
QSize Size = sizeHint();
417-
Size.setWidth(10);
417+
if (d->isHorizontal())
418+
{
419+
Size.setWidth(0);
420+
}
421+
else
422+
{
423+
Size.setHeight(0);
424+
}
418425
return Size;
419426
}
420427

0 commit comments

Comments
 (0)