this is because you resize using
int height = Math.max(editArea.getHeight(), textFont.getHeight());
instead try to give some fixed height. eg
height= Graphics.getScreenHeight()/5;
or you can also use setExtent inside manager subexpression method
protected void sublayout(int maxWidth, int maxHeight) { layoutChild(_editField, _editField.getPreferredWidth(), _editField.getPreferredHeight()); setPositionChild(_editField, xpos,ypos); setExtent(preferredHeight,preferredWidth); }
I think it will work. Please let me know
Swati
source share