Improve report height. Maybe
This commit is contained in:
parent
41299784e7
commit
1ee3471e4c
@ -130,8 +130,12 @@ class Report(QtWidgets.QDialog):
|
|||||||
self.tableWidget.resizeColumnToContents(0)
|
self.tableWidget.resizeColumnToContents(0)
|
||||||
|
|
||||||
if self.tableWidget.rowCount() > 4:
|
if self.tableWidget.rowCount() > 4:
|
||||||
self.tableWidget.setMinimumHeight(min((self.tableWidget.rowCount() + 2) * self.tableWidget.rowHeight(0),
|
self.tableWidget.setMinimumHeight(
|
||||||
get_screen_height(self.tableWidget) * 0.8))
|
min(
|
||||||
|
(self.tableWidget.rowCount()) * self.tableWidget.rowHeight(0) + self.header.height() + 4,
|
||||||
|
get_screen_height(self.tableWidget) * 0.8
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
def update_prev_next(self):
|
def update_prev_next(self):
|
||||||
prev, _next = self._report.prev_next_avail()
|
prev, _next = self._report.prev_next_avail()
|
||||||
|
Loading…
Reference in New Issue
Block a user