resize immediately after applying max height

another async x11 weirdness, now the height stays correctly synced
This commit is contained in:
Marco Martin 2014-06-10 14:13:41 +02:00
parent 17bc7897e3
commit 15280e336f

View File

@ -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);
}