From 16b3b7a2620d82e29f7baac86cd980d59cd46fce Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 2 Nov 2016 22:51:27 +0100 Subject: [PATCH] Fix prompt positioning with top statusbar --- qutebrowser/mainwindow/mainwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index 8ed6a19a2..ecfd46c5d 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -251,7 +251,7 @@ class MainWindow(QWidget): topleft = QPoint(left, self.status.geometry().bottom()) bottom = self.status.height() + size_hint.height() bottom = qtutils.check_overflow(bottom, 'int', fatal=False) - bottomright = QPoint(width, + bottomright = QPoint(left + width, min(self.height() - max_height_padding, bottom)) else: raise ValueError("Invalid position {}!".format(status_position))