AbstractListField:73 defaults the list size to 2 if nothing is set in the builder. This causes problems in the ObjectEdit display. Instead of a dropdown the select is shown as a select with size 2 which makes selection cumbersome. Appart from maybe multiselect lists I don't see a reason to add a size by default. --> move to ListField constructor as this.size = firstNonNull(builder.size, builder.multiSelect ? 2 : 1)
you are right, when I set the default to 2 I only had multiSelect in mind, because size 1 is very annoying in that case. it makes it worse for singleSelect though. see:
AbstractListField:73
defaults the list size to 2 if nothing is set in the builder. This causes problems in the ObjectEdit display. Instead of a dropdown the select is shown as a select with size 2 which makes selection cumbersome. Appart from maybe multiselect lists I don't see a reason to add a size by default.--> move to ListField constructor as
this.size = firstNonNull(builder.size, builder.multiSelect ? 2 : 1)