Commit f5799865 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix the minimum width of the toolbox docker.

Patch by MMolch
parent 5db8d844
......@@ -152,7 +152,12 @@ QSize KoDockWidgetTitleBar::sizeHint() const
return QSize(buttonWidth /*+ height*/ + 2*mw + 2*fw + titleWidth, height);
}
else {
return QSize(buttonWidth, height);
if (q->widget()) {
return QSize(qMin(q->widget()->sizeHint().width(), buttonWidth), height);
}
else {
return QSize(buttonWidth, height);
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment