diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 5c0cd16f8..df0048516 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -449,13 +449,7 @@ class TabbedBrowser(tabwidget.TabWidget): # Make sure the background tab has the correct initial size. # With a foreground tab, it's going to be resized correctly by the # layout anyways. - if self.tabBar().vertical: - tab_size = QSize(self.width() - self.tabBar().width(), - self.height()) - else: - tab_size = QSize(self.width(), - self.height() - self.tabBar().height()) - tab.resize(tab_size) + tab.resize(self.currentWidget().size()) self.tab_index_changed.emit(self.currentIndex(), self.count()) else: self.setCurrentWidget(tab)