Skip to content

Commit

Permalink
fix resizeevent float
Browse files Browse the repository at this point in the history
  • Loading branch information
DoTheEvo committed Dec 18, 2021
1 parent 6f8fccc commit 8280de6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions angrysearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,13 +550,13 @@ def __init__(self, lite=True, row_height=0, parent=None):
def resizeEvent(self, event):
width = event.size().width()
if self.lite:
self.setColumnWidth(0, width * 0.40)
self.setColumnWidth(1, width * 0.60)
self.setColumnWidth(0, int(width * 0.40))
self.setColumnWidth(1, int(width * 0.60))
else:
self.setColumnWidth(0, width * 0.30)
self.setColumnWidth(1, width * 0.38)
self.setColumnWidth(2, width * 0.10)
self.setColumnWidth(3, width * 0.22)
self.setColumnWidth(0, int(width * 0.30))
self.setColumnWidth(1, int(width * 0.38))
self.setColumnWidth(2, int(width * 0.10))
self.setColumnWidth(3, int(width * 0.22))

# ROW IS HIGHLIGHTED THE MOMENT THE TABLE IS FOCUSED
def focusInEvent(self, event):
Expand Down

0 comments on commit 8280de6

Please sign in to comment.