Skip to content

Commit

Permalink
fix(core/ui): use full line_width for content
Browse files Browse the repository at this point in the history
  • Loading branch information
matejcik committed Dec 16, 2020
1 parent d063835 commit 49b55b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/trezor/ui/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ def next_line(self) -> bool:
# do not continue over newline
break

elif width + nextchar_width >= line_width:
elif width + nextchar_width > line_width:
# this char would overflow the line. end loop, use last result
break

elif (
break_words or word_break
) and width + nextchar_width + DASH_WIDTH < line_width:
) and width + nextchar_width + DASH_WIDTH <= line_width:
# Trying a possible break in the middle of a word.
# We can do this if:
# - we haven't found a space yet (word_break is still True) -- if a word
Expand Down

0 comments on commit 49b55b5

Please sign in to comment.