summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/qml/qmlruntime.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp
index 2cca262..ec748b4 100644
--- a/tools/qml/qmlruntime.cpp
+++ b/tools/qml/qmlruntime.cpp
@@ -1331,6 +1331,7 @@ void QDeclarativeViewer::orientationChanged()
if (size() != rootObjectSize.toSize()) {
canvas->setMinimumSize(rootObjectSize.toSize());
canvas->resize(rootObjectSize.toSize());
+ resize(rootObjectSize.toSize());
resize(1, 1); // workaround for QMainWindowLayout NOT shrinking the window if the centralWidget() shrinks
}
}