Open nicolasQbt opened 11 years ago
That's intended, as when size is 1 the list is a dropdown list.
I guess that size might not be the best property to set it, but it directly links to the size property of SELECT elements in HTML. I'm not sure if the size
attribute is really strictly enforced - as in, if you set the height then it will display as many items as possible.
So maybe there should be two classes here. One for dropdown lists and one for "normal" lists.
?
Maybe the two class is the good solution. For the moment, I force the size.
In listbox.rb line 36 in
initialize
should be :
If I create a list with 2 items, I have to set the size to 2 like this :
otherwise I can't set the
multiple=
to true because :