mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 21:25:44 +08:00
Fix side tab widget resizing strangely on first add
This commit is contained in:
parent
060313c11f
commit
87324846cd
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user