summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius <froase@gmail.com>2017-06-20 21:18:13 +0200
committerMarius <froase@gmail.com>2017-06-20 21:18:13 +0200
commit6e166d139a81b53cbb50a8370d59f7269c3a10cb (patch)
tree88cdd615453689096a272ffefd21c65ccdc389b9
parentcb5cd1a9103c7b4d78cd5674af46641de4cec32d (diff)
downloadqutebrowser-6e166d139a81b53cbb50a8370d59f7269c3a10cb.tar.gz
qutebrowser-6e166d139a81b53cbb50a8370d59f7269c3a10cb.zip
Fix alignment of scroll buttons in tab bar
-rw-r--r--qutebrowser/mainwindow/tabwidget.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py
index 2c4eb6eab..9168a28b6 100644
--- a/qutebrowser/mainwindow/tabwidget.py
+++ b/qutebrowser/mainwindow/tabwidget.py
@@ -759,6 +759,12 @@ class TabBarStyle(QCommonStyle):
# style differences...
rct = super().subElementRect(sr, opt, widget)
return rct
+ elif sr == QStyle.SE_TabBarScrollLeftButton:
+ # We need this so the left scroll button is aligned properly.
+ # Otherwise, empty space will be shown after the last tab even
+ # though the button width is set to 0
+ rct = super().subElementRect(sr, opt, widget)
+ return rct
else:
return self._style.subElementRect(sr, opt, widget)