Skip to content

Commit

Permalink
Fix HighlightTextArea not disabling soft wraps, close #339
Browse files Browse the repository at this point in the history
  • Loading branch information
kotcrab committed Sep 1, 2020
1 parent ffc696a commit ba66b23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- `TabbedPane::removeAll` does not clear the active tab field
- `TabbedPane::remove(Tab)` does not clear the active tab field when it removes last tab
- **Fixed**: [#336](https://github.com/kotcrab/vis-ui/issues/336) - `VisTextField` crash when text has newlines
- **Fixed**: [#339](https://github.com/kotcrab/vis-ui/issues/339) - `HighlightTextArea` was not disabling soft wrapping when using some constructors

#### Version: 1.4.6 (LibGDX 1.9.11)
- Updated to libGDX 1.9.11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,21 @@ public class HighlightTextArea extends ScrollableTextArea {

public HighlightTextArea (String text) {
super(text);
softwrap = false;
init();
}

public HighlightTextArea (String text, String styleName) {
super(text, styleName);
init();
}

public HighlightTextArea (String text, VisTextFieldStyle style) {
super(text, style);
init();
}

private void init() {
softwrap = false;
}

@Override
Expand Down

0 comments on commit ba66b23

Please sign in to comment.