From 5808f3c581fbe40fec066aca66ed96030d3a163f Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 24 Jan 2016 16:42:09 +0100 Subject: [PATCH] Fix position of status bar message popup --- src/lib/other/statusbarmessage.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/other/statusbarmessage.cpp b/src/lib/other/statusbarmessage.cpp index 900f7c8b6..560f0e56a 100644 --- a/src/lib/other/statusbarmessage.cpp +++ b/src/lib/other/statusbarmessage.cpp @@ -126,15 +126,11 @@ void StatusBarMessage::showMessage(const QString &message) #endif WebView* view = m_window->weView(); - // Hardcode some sane value as we can't get the real value with QtWebEngine - int horizontalScrollSize = 20; - int verticalScrollSize = 20; - m_statusBarText->setText(message); - m_statusBarText->setMaximumWidth(view->width() - verticalScrollSize); + m_statusBarText->setMaximumWidth(view->width() - 20); m_statusBarText->resize(m_statusBarText->sizeHint()); - QPoint position(0, view->height() - horizontalScrollSize - m_statusBarText->height()); + QPoint position(0, view->height() - m_statusBarText->height()); const QRect statusRect = QRect(view->mapToGlobal(QPoint(0, position.y())), m_statusBarText->size()); if (statusRect.contains(QCursor::pos())) {