Skip to content

Commit

Permalink
Fix setCursorAtTextEnd typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kotcrab committed Aug 3, 2016
1 parent 65996af commit 154e20d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ui/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#### Version: 1.1.5-SNAPSHOT (LibGDX 1.9.3)
- **API Changed**: `VisTextField#setCurosrAtTextEnd` renamed to `setCursorAtTextEnd` (typo)
- **Added**: `Tooltip#getTarget`
- **Added**: `MenuItem` constructors taking style name
- **Changed**: It's now impossible to create `FileTypeFilter` `Rule` without providing at least one extension
Expand Down
4 changes: 3 additions & 1 deletion ui/src/main/java/com/kotcrab/vis/ui/widget/VisTextField.java
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,9 @@ public int getCursorPosition () {
return cursor;
}

public void setCurosrAtTextEnd () {
public void setCursorAtTextEnd () {
setCursorPosition(0);
calculateOffsets();
setCursorPosition(getText().length());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void changed (ChangeEvent event, Actor actor) {
@Override
public void changed (ChangeEvent event, Actor actor) {
fileNameField.setText(arbitraryPath);
fileNameField.setCurosrAtTextEnd();
fileNameField.setCursorAtTextEnd();
}
});
addItem(item);
Expand Down

0 comments on commit 154e20d

Please sign in to comment.