From 1ee3471e4c771c83469d4cadc43d4f97ecccf191 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 26 Nov 2021 23:41:04 +0100 Subject: [PATCH] Improve report height. Maybe --- src/fime/report.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/fime/report.py b/src/fime/report.py index b50304a..22e24e2 100644 --- a/src/fime/report.py +++ b/src/fime/report.py @@ -130,8 +130,12 @@ class Report(QtWidgets.QDialog): self.tableWidget.resizeColumnToContents(0) if self.tableWidget.rowCount() > 4: - self.tableWidget.setMinimumHeight(min((self.tableWidget.rowCount() + 2) * self.tableWidget.rowHeight(0), - get_screen_height(self.tableWidget) * 0.8)) + self.tableWidget.setMinimumHeight( + min( + (self.tableWidget.rowCount()) * self.tableWidget.rowHeight(0) + self.header.height() + 4, + get_screen_height(self.tableWidget) * 0.8 + ) + ) def update_prev_next(self): prev, _next = self._report.prev_next_avail()