LayoutSaver: Fix rounding errors when doing a relative restore
After a restore with relative sizes the items might not be on a pixel perfect position regarding to their anchors. Make sure they are after the restore is complete.
This commit is contained in:
@@ -1080,6 +1080,7 @@ void MultiSplitterLayout::positionStaticAnchors()
|
||||
|
||||
void MultiSplitterLayout::redistributeSpace()
|
||||
{
|
||||
positionStaticAnchors();
|
||||
redistributeSpace_recursive(m_leftAnchor, 0);
|
||||
redistributeSpace_recursive(m_topAnchor, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user