diff options
Diffstat (limited to 'Source/WebKit/qt/declarative/qdeclarativewebview.cpp')
-rw-r--r-- | Source/WebKit/qt/declarative/qdeclarativewebview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit/qt/declarative/qdeclarativewebview.cpp b/Source/WebKit/qt/declarative/qdeclarativewebview.cpp index bcc1f1c..9313d6c 100644 --- a/Source/WebKit/qt/declarative/qdeclarativewebview.cpp +++ b/Source/WebKit/qt/declarative/qdeclarativewebview.cpp @@ -275,6 +275,10 @@ void QDeclarativeWebView::init() d->view->setFocus(); QWebPage* wp = new QDeclarativeWebPage(this); setPage(wp); + if (!preferredWidth()) + setPreferredWidth(d->view->preferredWidth()); + if (!preferredHeight()) + setPreferredHeight(d->view->preferredHeight()); connect(d->view, SIGNAL(geometryChanged()), this, SLOT(updateDeclarativeWebViewSize())); connect(d->view, SIGNAL(doubleClick(int, int)), this, SIGNAL(doubleClick(int, int))); connect(d->view, SIGNAL(scaleChanged()), this, SIGNAL(contentsScaleChanged())); |