From aab7e37bb23dff0d50a805f1455ae075dbe241b2 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Mon, 28 Nov 2022 20:55:50 -0800 Subject: [PATCH] Use contentsRect().width() instead of width --- comictaggerlib/volumeselectionwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comictaggerlib/volumeselectionwindow.py b/comictaggerlib/volumeselectionwindow.py index 772dc52..5a3e539 100644 --- a/comictaggerlib/volumeselectionwindow.py +++ b/comictaggerlib/volumeselectionwindow.py @@ -479,7 +479,7 @@ class VolumeSelectionWindow(QtWidgets.QDialog): # Get the width of the issues, year and publisher columns owidth = self.twList.columnWidth(1) + self.twList.columnWidth(2) + self.twList.columnWidth(3) # Get the remaining width after they fill the tableWidget - rwidth = self.twList.width() - owidth + rwidth = self.twList.contentsRect().width() - owidth # Default the tableWidget to truncate series names self.twList.setColumnWidth(0, rwidth)