sync borders after adjusting geometry
This commit is contained in:
parent
0ef526b8df
commit
2e7d295e9e
@ -342,7 +342,7 @@ void DialogPrivate::syncToMainItemSize()
|
||||
if (!mainItem) {
|
||||
return;
|
||||
}
|
||||
syncBorders();
|
||||
|
||||
const QSize s = QSize(mainItem.data()->width(), mainItem.data()->height()) +
|
||||
QSize(frameSvgItem->margins()->left() + frameSvgItem->margins()->right(),
|
||||
frameSvgItem->margins()->top() + frameSvgItem->margins()->bottom());
|
||||
@ -357,6 +357,7 @@ void DialogPrivate::syncToMainItemSize()
|
||||
} else {
|
||||
q->resize(s);
|
||||
}
|
||||
syncBorders();
|
||||
}
|
||||
|
||||
void DialogPrivate::requestSyncToMainItemSize(bool delayed)
|
||||
|
Loading…
Reference in New Issue
Block a user