From 0fbbef7609e76112d0d8d1fefbd5483e16b66638 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Tue, 25 Oct 2022 11:09:13 +0200 Subject: [PATCH] Fixed initial size of AutoHideDockContainer --- src/AutoHideDockContainer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AutoHideDockContainer.cpp b/src/AutoHideDockContainer.cpp index a45f455..f56cb6e 100644 --- a/src/AutoHideDockContainer.cpp +++ b/src/AutoHideDockContainer.cpp @@ -317,7 +317,10 @@ void CAutoHideDockContainer::addDockWidget(CDockWidget* DockWidget) d->DockArea->addDockWidget(DockWidget); d->DockWidget->sideTabWidget()->updateOrientationAndSpacing(d->SideTabBarArea); qDebug() << "DockWidget->size(): " << DockWidget->size(); - this->resize(OldDockArea ? OldDockArea->size() : d->DockWidget->size()); + // The initial size should be a little bit bigger than the original dock + // area size to prevent that the resize handle of this auto hid dock area + // is near of the splitter of the old dock area. + d->Size = OldDockArea->size() + QSize(16, 16); updateSize(); }