mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 00:00:25 +08:00
Improved initial size of floating dock widget
This commit is contained in:
parent
83cdc69fc8
commit
401e8cf492
@ -133,7 +133,9 @@ void DockWidgetPrivate::showDockWidget()
|
||||
if (!DockArea)
|
||||
{
|
||||
CFloatingDockContainer* FloatingWidget = new CFloatingDockContainer(_this);
|
||||
FloatingWidget->resize(_this->size());
|
||||
// We use the size hint of the content widget to provide a good
|
||||
// initial size
|
||||
FloatingWidget->resize(Widget ? Widget->sizeHint() : _this->sizeHint());
|
||||
TabWidget->show();
|
||||
FloatingWidget->show();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user