diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index c56fc7f36..c9f617515 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -239,6 +239,9 @@ void DialogPrivate::updateVisibility(bool visible) cachedGeometry = QRect(); } syncToMainItemSize(); + if (mainItemLayout) { + updateLayoutParameters(); + } } } @@ -424,7 +427,7 @@ void DialogPrivate::updateMaximumHeight() void DialogPrivate::updateLayoutParameters() { - if (!componentComplete) { + if (!componentComplete || !mainItem || !q->isVisible()) { return; } Q_ASSERT(mainItem);