Skip to content

Commit

Permalink
Fix alignment of minus sign to numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarza committed Mar 8, 2019
1 parent 3aca85e commit ae1efc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manimlib/mobject/numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def __init__(self, number=0, **kwargs):
# to the bottom
for i, c in enumerate(num_string):
if c == "-" and len(num_string) > i + 1:
self[i].align_to(self[i + 1], alignment_vect=UP)
self[i].align_to(self[i + 1], UP)
self[i].shift(self[i+1].get_height() * DOWN / 2)
elif c == ",":
self[i].shift(self[i].get_height() * DOWN / 2)
if self.unit and self.unit.startswith("^"):
Expand Down

0 comments on commit ae1efc6

Please sign in to comment.