Fix dock widgets not filling their complete available space

To repro:
 - stack 3 dock widgets vertically
 - close the top one
 - close the top one
 The remaining one should now fill the whole window but it wasn't.

Culprit was the code that makes sure that when a dock is closed that
the adjacent ones get to share their space
This commit is contained in:
Sergio Martins
2019-12-23 14:28:40 +00:00
parent 7452520662
commit 6be6aee56a
2 changed files with 34 additions and 1 deletions

View File

@@ -1792,7 +1792,7 @@ void MultiSplitterLayout::updateAnchorFollowing(const AnchorGroup &groupBeingRem
}
}
if (doShift)
if (doShift && !anchorToShift->isFollowing())
anchorToShift->setPosition(newPosition);
}