Commit 7ae51709 authored by Victor Yacovlev's avatar Victor Yacovlev

Workaround on bug #kumir2-1711

parent 5740c3ac
......@@ -153,10 +153,13 @@ void Side::ensureEnoughtSpaceForComponent(QWidget *component, const QSize &size)
int w = size.isValid() ? size.width() : component->minimumSizeHint().width();
int diff = w - szs[index];
if (diff <= 0)
return;
return;
// 1. Try to decrease width of auto-resizable component
int resizableIndex = autoResizable_.indexOf(true);
int widgetsCount = count();
if (resizableIndex >= widgetsCount)
return;
if (resizableIndex != -1 && resizableIndex != index) {
int minW = widget(resizableIndex)->minimumSizeHint().width();
int curW = szs[resizableIndex];
......
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