Fixed alignment bug
This commit is contained in:
parent
44deafa978
commit
5ac46a2e9d
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class TextDesign (DesignEntity):
|
|||
|
||||
if self.horizontal_alignment == "center":
|
||||
x = int((self.size[0] / 2) - (width / 2))
|
||||
elif self.vertical_alignment == "right":
|
||||
elif self.horizontal_alignment == "right":
|
||||
x = int(self.size[0] - width)
|
||||
|
||||
return (x, y + paddingcorrection)
|
||||
|
|
Loading…
Reference in a new issue