Fix side tab widget resizing strangely on first add

This commit is contained in:
Syarif Fakhri 2022-09-15 16:02:55 +08:00
parent 060313c11f
commit 87324846cd

View File

@ -1505,6 +1505,7 @@ COverlayDockContainer* CDockContainerWidget::createAndInitializeDockWidgetOverla
} }
sideTabBar(area)->insertSideTab(insertOrder == CDockWidget::First ? 0 : -1, DockWidget->sideTabWidget()); sideTabBar(area)->insertSideTab(insertOrder == CDockWidget::First ? 0 : -1, DockWidget->sideTabWidget());
sideTabBar(area)->show();
DockWidget->sideTabWidget()->show(); DockWidget->sideTabWidget()->show();
const auto dockContainer = new COverlayDockContainer(DockWidget, area, this); const auto dockContainer = new COverlayDockContainer(DockWidget, area, this);
@ -1554,7 +1555,8 @@ CDockWidgetSideTab::SideTabBarArea CDockContainerWidget::getDockAreaPosition(CDo
{ {
if (CDockManager::testConfigFlag(CDockManager::DockContainerHasLeftSideBar)) if (CDockManager::testConfigFlag(CDockManager::DockContainerHasLeftSideBar))
{ {
return CDockWidgetSideTab::LeftTop; // todo: cleanup - revert
return CDockWidgetSideTab::LeftBottom;
} }
if (CDockManager::testConfigFlag(CDockManager::DockContainerHasRightSideBar)) if (CDockManager::testConfigFlag(CDockManager::DockContainerHasRightSideBar))