Menu

#6 DatePickerCombo text field too small

open
nobody
date combo (2)
5
2006-09-29
2006-09-29
Anonymous
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB