We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83cdc69 commit 401e8cfCopy full SHA for 401e8cf
src/DockWidget.cpp
@@ -133,7 +133,9 @@ void DockWidgetPrivate::showDockWidget()
133
if (!DockArea)
134
{
135
CFloatingDockContainer* FloatingWidget = new CFloatingDockContainer(_this);
136
- FloatingWidget->resize(_this->size());
+ // We use the size hint of the content widget to provide a good
137
+ // initial size
138
+ FloatingWidget->resize(Widget ? Widget->sizeHint() : _this->sizeHint());
139
TabWidget->show();
140
FloatingWidget->show();
141
}
0 commit comments