DatePickerCombo text field too small
Status: Beta
Brought to you by:
nirpaz
With the layout manager I'm using the DatePickerCombo
consistently sizes too small for its content. After a
little investigation it looks like
computeSize() in DatePickerCombo.java my be incorrectly
calculating the size of the text box. I changed the
width calculation to
width = Math.max(wHint, textSize.x + 2 * spacer +
arrowSize.x + 2 * borderWidth);
instead of using textWidth (which seems to be always 0)
and sizing seems to work.