From 764601ac70042b3f733d114496b2fd5e4bbacda6 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 24 Sep 2009 18:39:12 +1000 Subject: Prevent qmlviewer from confusing people when root items are small. Task-number: QT-711 --- src/declarative/util/qmlview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/declarative/util/qmlview.cpp b/src/declarative/util/qmlview.cpp index 7cce2da..805612e 100644 --- a/src/declarative/util/qmlview.cpp +++ b/src/declarative/util/qmlview.cpp @@ -340,6 +340,8 @@ void QmlView::continueExecute() d->initialSize.setWidth(d->root->width()); if (d->initialSize.height() <= 0 && d->root->height() > 0) d->initialSize.setHeight(d->root->height()); + resize(d->initialSize); + if (d->resizable) { d->root->setWidth(width()); d->root->setHeight(height()); -- cgit v0.12