When calculating bounds start from the anchor we're following

This commit is contained in:
Sergio Martins
2020-01-22 21:50:39 +00:00
parent a71361341c
commit d5162efa31

View File

@@ -669,6 +669,9 @@ QPair<int, int> MultiSplitterLayout::boundPositionsForAnchor(Anchor *anchor) con
}
}
if (anchor->isFollowing())
anchor = anchor->endFollowee();
const int minSide1Length = anchor->cumulativeMinLength(Anchor::Side1);
const int minSide2Length = anchor->cumulativeMinLength(Anchor::Side2);
const int length = anchor->isVertical() ? width() : height();