From 59b4ccc6209ed53b524007073f75c7d5fb42bf30 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 3 Nov 2016 06:43:52 +0100 Subject: [PATCH] Rename max_height_padding --- qutebrowser/mainwindow/mainwindow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index f0d7ce5c0..0e5a5c069 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -235,19 +235,19 @@ class MainWindow(QWidget): width = size_hint.width() left = (self.width() - size_hint.width()) / 2 if centered else 0 - max_height_padding = 20 + height_padding = 20 status_position = config.get('ui', 'status-position') if status_position == 'bottom': top = self.height() - self.status.height() - size_hint.height() top = qtutils.check_overflow(top, 'int', fatal=False) - topleft = QPoint(left, max(max_height_padding, top)) + topleft = QPoint(left, max(height_padding, top)) bottomright = QPoint(left + width, self.status.geometry().top()) elif status_position == 'top': topleft = QPoint(left, self.status.geometry().bottom()) bottom = self.status.height() + size_hint.height() bottom = qtutils.check_overflow(bottom, 'int', fatal=False) bottomright = QPoint(left + width, - min(self.height() - max_height_padding, bottom)) + min(self.height() - height_padding, bottom)) else: raise ValueError("Invalid position {}!".format(status_position))