From d4376c5196aa5b9556fc2cba4a112bd0ce5c82ad Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 22 Sep 2016 17:34:30 +0200 Subject: [PATCH] Fix overlays with a top statusbar --- qutebrowser/mainwindow/mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 561a994b2..593ed04bd 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -233,9 +233,9 @@ class MainWindow(QWidget): bottomright = QPoint(width, self.status.geometry().top()) elif status_position == 'top': topleft = self.status.geometry().bottomLeft() - bottom = self.status.height() + widget.height() + bottom = self.status.height() + size_hint.height() bottom = qtutils.check_overflow(bottom, 'int', fatal=False) - bottomright = QPoint(size_hint.width(), bottom) + bottomright = QPoint(width, bottom) else: raise ValueError("Invalid position {}!".format(status_position))