Fix minimum size for vertical tabs

This commit is contained in:
Jay Kamat 2018-03-22 12:55:33 -04:00
parent 300d873b18
commit 477da6002a
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -494,8 +494,8 @@ class TabBar(QTabBar):
self.iconSize().width()) + icon_padding
pinned = self._tab_pinned(index)
if pinned:
# Never consider ellipsis an option for pinned tabs
if not self.vertical and pinned and config.val.tabs.pinned.shrink:
# Never consider ellipsis an option for horizontal pinned tabs
ellipsis = False
return self._minimum_tab_size_hint_helper(self.tabText(index),
icon_width, ellipsis,