Fix overlays with a top statusbar

This commit is contained in:
Florian Bruhin 2016-09-22 17:34:30 +02:00
parent e6f62f8118
commit d4376c5196

View File

@ -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))