You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consider or add the following improvements to TextArea:
unset word wrap inherited from dui-field. In my opinion TextArea should wordwrap and scroll by default. The following css allows it to word wrap
textarea.dui-field-input {
white-space: unset;
}
Alternatively a css class or helper function could be created: TextArea.wordwrap() { getInputElement().setCssProperty("white-space", "unset");
Allow sizing of TextArea. Currently to size a TextArea, it needs to be sized by rows, or the following line needs commented out (I see no reason to even have setHeight("auto") so please consider removing it)
private void adjustHeight() {
// getInputElement().style().setHeight("auto");
int scrollHeight = getInputElement().element().scrollHeight;
if (scrollHeight < 30) {
scrollHeight = 28;
}
if (autoSize) {
getInputElement().style().setHeight(scrollHeight + "px");
}
}
Allow sizing through TextArea.setSize()...It seems a bit unusual that to size the TextArea I need to call TextArea.getInputElement.setSize(). I understand why, but it's not intuitive
Alternatively allow the TextArea to consume it's parent's height (dui_h_full). This too requires dui_h_full to be set on every layer and requires height:auto to be removed, a helper function here would be nice.
Please consider or add the following improvements to TextArea:
Alternatively a css class or helper function could be created: TextArea.wordwrap() {
getInputElement().setCssProperty("white-space", "unset");
Allow sizing through TextArea.setSize()...It seems a bit unusual that to size the TextArea I need to call TextArea.getInputElement.setSize(). I understand why, but it's not intuitive
Alternatively allow the TextArea to consume it's parent's height (dui_h_full). This too requires dui_h_full to be set on every layer and requires height:auto to be removed, a helper function here would be nice.
The text was updated successfully, but these errors were encountered: