diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webpluginfactory.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index 1ff1b783..b836e620 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -58,7 +58,15 @@ QObject *WebPluginFactory::create(const QString &mimeType, WebView* w = new WebView( Application::instance()->mainWindow()->currentTab() ); w->load(url); -// w->page()->setViewportSize(w->page()->mainFrame()->contentsSize()); + QWebFrame *frame = w->page()->mainFrame(); + + QSize size = frame->contentsSize(); + qreal zoom = size.height()/150.; + frame->setZoomFactor(zoom); + + frame->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff); + frame->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff); + return w; } |