Skip to content

Commit

Permalink
Textfield fix
Browse files Browse the repository at this point in the history
Fix Textfield cutting off last character.
  • Loading branch information
chichian committed Apr 4, 2019
1 parent 299f7d7 commit 7bf15a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TSTextField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void TSTextField::draw(NVGcontext *vg) {

displayStr = text;
if (nextX > maxTextWidth) {
int nChars = maxTextWidth / estLetterSize;
int nChars = maxTextWidth / estLetterSize - 1;
if (nChars < 1)
nChars = 1;

Expand Down

0 comments on commit 7bf15a2

Please sign in to comment.