diff --git a/app/fullscreencontent.h b/app/fullscreencontent.h --- a/app/fullscreencontent.h +++ b/app/fullscreencontent.h @@ -78,6 +78,7 @@ public Q_SLOTS: void setCurrentUrl(const QUrl&); + void adjustSize(); private Q_SLOTS: void updateCurrentUrlWidgets(); diff --git a/app/fullscreencontent.cpp b/app/fullscreencontent.cpp --- a/app/fullscreencontent.cpp +++ b/app/fullscreencontent.cpp @@ -349,6 +349,12 @@ mAutoHideContainer->setActivated(true); } +void FullScreenContent::adjustSize() +{ + if (mFullScreenMode && mViewPageVisible) { + mAutoHideContainer->adjustSize(); + } +} void FullScreenContent::createOptionsAction() { diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -258,6 +258,9 @@ mViewStackedWidget->addWidget(mStartMainPage); mViewStackedWidget->setCurrentWidget(mBrowseMainPage); + EventWatcher::install(mViewMainPage, QEvent::Resize, + mFullScreenContent, SLOT(adjustSize())); + mCentralSplitter->setStretchFactor(0, 0); mCentralSplitter->setStretchFactor(1, 1); diff --git a/lib/fullscreenbar.cpp b/lib/fullscreenbar.cpp --- a/lib/fullscreenbar.cpp +++ b/lib/fullscreenbar.cpp @@ -148,7 +148,8 @@ if (layout()->expandingDirections() & Qt::Horizontal) { int width = QApplication::desktop()->screenGeometry(window()).width(); - sh.setWidth(width); + const QPoint screenPos = mapTo(window(), pos()); + sh.setWidth(width-screenPos.x()); } return sh; }