Fix for tab left-align issue (#246)

* Fix for tab left-align issue
This commit is contained in:
Wendel Voigt 2019-02-16 15:27:08 -06:00 committed by Peter
parent 271ab73dc7
commit 1b11c94c43

View File

@ -1105,7 +1105,8 @@ class DividerDrawer(object):
NotRightEdge = not NotRightEdge NotRightEdge = not NotRightEdge
if NotRightEdge: if NotRightEdge:
if (self.options.tab_name_align == "centre" or self.wantCentreTab(card) if (self.options.tab_name_align == "centre" or self.wantCentreTab(card)
or (item.getClosestSide(backside=backside) == CardPlot.CENTRE)): or (item.getClosestSide(backside=backside) == CardPlot.CENTRE
and self.options.tab_name_align == "edge")):
w = item.tabWidth / 2 - self.nameWidth(line, fontSize) / 2 w = item.tabWidth / 2 - self.nameWidth(line, fontSize) / 2
else: else:
w = textInset w = textInset