summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@theqtcompany.com>2015-05-29 16:07:57 +0200
committerChristian Stromme <christian.stromme@theqtcompany.com>2015-06-24 09:58:07 +0000
commitfbf7b3159a79bf75f6d86af74b5241b5260d778b (patch)
tree917db46a9ddecd5a0c62f7b763ca7b8feca90a7a
parentbcf6f3bf3c44af2a3ff852e77757f7ee8c7f31c3 (diff)
iOS: Enable zooming of web content.
We need to set scalesPageToFit to enable user zooming. Task-number: QTBUG-46211 Change-Id: Ibf114a6571fb7cf57564b8f22e044efc5ff32381 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
-rw-r--r--src/webview/qwebview_ios.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/qwebview_ios.mm b/src/webview/qwebview_ios.mm
index f5984b2..f622b6b 100644
--- a/src/webview/qwebview_ios.mm
+++ b/src/webview/qwebview_ios.mm
@@ -190,7 +190,7 @@ QIosWebViewPrivate::QIosWebViewPrivate(QObject *p)
m_recognizer = [[QIOSNativeViewSelectedRecognizer alloc] initWithQWindowControllerItem:this];
[uiWebView addGestureRecognizer:m_recognizer];
-
+ uiWebView.scalesPageToFit = YES;
}
QIosWebViewPrivate::~QIosWebViewPrivate()