word-wrap the comment views

This commit is contained in:
Zlatin Balevsky
2019-10-30 19:52:37 +00:00
parent 8a0257927b
commit 29c81646af
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class AddCommentView {
borderLayout()
panel (constraints : BorderLayout.CENTER) {
scrollPane {
textarea = textArea(text : comment, rows : 20, columns : 100, editable : true)
textarea = textArea(text : comment, rows : 20, columns : 100, editable : true, lineWrap:true, wrapStyleWord:true)
}
}
panel (constraints : BorderLayout.SOUTH) {

View File

@@ -37,7 +37,7 @@ class ShowCommentView {
borderLayout()
panel (constraints : BorderLayout.CENTER) {
scrollPane {
textArea(text : model.result.comment, rows : 20, columns : 100, editable : false)
textArea(text : model.result.comment, rows : 20, columns : 100, editable : false, lineWrap : true, wrapStyleWord : true)
}
}
panel (constraints : BorderLayout.SOUTH) {