Skip to content

Commit

Permalink
Fix text wrapping bug.
Browse files Browse the repository at this point in the history
The text was moving to the next line unexpectedly due to the addition of width parameter in the output. The bug was fixed by removing the parameter. Now users would need to explicitly press `Enter` or `Return` to move to the next line.
  • Loading branch information
ParthJadhav committed Aug 4, 2021
1 parent 8ab0fe4 commit cf44120
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tkdesigner/figma/custom_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def to_code(self):
anchor="nw",
text="{self.text}",
fill="{self.text_color}",
font=("{self.font}", {int(self.font_size)} * -1),
width={self.width}
font=("{self.font}", {int(self.font_size)} * -1)
)
"""

Expand Down

0 comments on commit cf44120

Please sign in to comment.