From 1b11c94c433c31ed600e2ad02e6528b2909772e9 Mon Sep 17 00:00:00 2001 From: Wendel Voigt Date: Sat, 16 Feb 2019 15:27:08 -0600 Subject: [PATCH] Fix for tab left-align issue (#246) * Fix for tab left-align issue --- domdiv/draw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/domdiv/draw.py b/domdiv/draw.py index 791c29b..7f7f1de 100644 --- a/domdiv/draw.py +++ b/domdiv/draw.py @@ -1105,7 +1105,8 @@ class DividerDrawer(object): NotRightEdge = not NotRightEdge if NotRightEdge: 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 else: w = textInset