completion resizeHint: adjust for scrollbar
This commit is contained in:
parent
444b813cf5
commit
748a28be1c
@ -98,6 +98,9 @@ class CompletionView(QTreeView):
|
||||
"""
|
||||
super().resizeEvent(e)
|
||||
width = e.size().width()
|
||||
bar = self.verticalScrollBar()
|
||||
if not bar.isVisible():
|
||||
width -= bar.sizeHint().width()
|
||||
cols = self.model.columnCount()
|
||||
colwidth = int(width / cols)
|
||||
logging.debug('width {}, {} columns -> colwidth {}'.format(width, cols,
|
||||
|
Loading…
Reference in New Issue
Block a user