resize immediately after applying max height
another async x11 weirdness, now the height stays correctly synced
This commit is contained in:
parent
17bc7897e3
commit
15280e336f
@ -286,6 +286,7 @@ void DialogPrivate::updateMaximumWidth()
|
||||
resizeOrigin = DialogPrivate::Window;
|
||||
if (hint > 0) {
|
||||
q->setMaximumWidth(hint + frameSvgItem->margins()->left() + frameSvgItem->margins()->right());
|
||||
q->setWidth(qMin(q->width(), q->maximumWidth()));
|
||||
} else {
|
||||
q->setMaximumWidth(DIALOGSIZE_MAX);
|
||||
}
|
||||
@ -301,6 +302,7 @@ void DialogPrivate::updateMaximumHeight()
|
||||
resizeOrigin = DialogPrivate::Window;
|
||||
if (hint > 0) {
|
||||
q->setMaximumHeight(hint + frameSvgItem->margins()->top() + frameSvgItem->margins()->bottom());
|
||||
q->setHeight(qMin(q->height(), q->maximumHeight()));
|
||||
} else {
|
||||
q->setMaximumHeight(DIALOGSIZE_MAX);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user