java - TextField auto resize issue -
i have following code in codenameone project:
final textarea tf = new textarea(); tf.setgrowbycontent(true); tf.setsinglelinetextarea(false);
the problem when run app , start typing in such text area, (no matter how many characters) text area not grow until focus goes other widget. tests have been in android.
is "normal" behavior? if not, how can fix it?
that normal behavior. text area native , native platforms don't have convention of growing text area while typing. instead can scroll within text area.
the grow content flag indicates rows/columns value text areas preferred size hint , not limitation, on default don't need invoke or disable single line mode (which on textfield
).
Comments
Post a Comment