Closed GoogleCodeExporter closed 9 years ago
Why would you set the width and height to 0 or smaller 10? the height of a
listbox should at least be equal or bigger than the itemheight with a minimum
value of 10. if the listbox should be made invisible with above technique,
could setVisible(false) do the job? or would collapsing the listbox help (use
close() )?
Original comment by soj...@gmail.com
on 13 Nov 2010 at 5:19
I calculate the height and width later in the program based on some other
variables. So what I was doing was initially creating the listBox at 0,0,0,0,
then setting the position and size later in the program. Of course I was able
to work around this by setting an initial size greater than 10, but I thought I
should let you know.
Original comment by jeffgem...@gmail.com
on 13 Nov 2010 at 2:17
I did look at the code and it would be easy enough to fix if you change your
mind.
ListBox.java
80 _myBackgroundHeight = theH; //You could do a simple _myBackgroundHeight =
theH < 10 ? 10;
Original comment by jeffgem...@gmail.com
on 13 Nov 2010 at 2:25
Opps.. these comments should allow edit. (also I'm not that great at Java
shorthand, so double check the statement).
ListBox.java
80 _myBackgroundHeight = theH; //You could do a simple _myBackgroundHeight =
theH < 10 ? 10 : theH;
Original comment by jeffgem...@gmail.com
on 13 Nov 2010 at 2:27
Original issue reported on code.google.com by
jeffgem...@gmail.com
on 12 Nov 2010 at 3:25