I’m working on a GUI having some BasicEditFields.
The screen has several Manager’s, ButtonFieldss, LabelFields and so forth.
After changing the text of the field, getContentHeight() returns a larger value. (37 with some text, 38 with other text)
I have specified padding and font, but the content height changes with the text field.
Is there any way to have a fixed size for my BasicEditField that will not vary according to the text content?
Note getPreferredHeight() returns the a constant value of 37, according to the font size.
You can achieve that by subclassing editfield and overriding sublayout:
I’m not sure if the call to
superis needed.