diff --git a/qutebrowser/widgets/completion.py b/qutebrowser/widgets/completion.py index 0fb2bee7b..098e89002 100644 --- a/qutebrowser/widgets/completion.py +++ b/qutebrowser/widgets/completion.py @@ -92,6 +92,7 @@ class CompletionView(QTreeView): e -- The QResizeEvent. """ + super().resizeEvent(e) width = e.size().width() cols = self.model.columnCount() colwidth = int(width / cols) @@ -101,7 +102,6 @@ class CompletionView(QTreeView): assert colwidth > 1 for i in range(cols): self.setColumnWidth(i, colwidth) - super().resizeEvent(e) def setmodel(self, model): """Switch completion to a new model.