Django Autocomplete Light: ModelSelect2Multiple height not expanding

34 views Asked by At

I have a forms.models.ModelMultipleChoiceField using an autocomplete.ModelSelect2Multiple widget.

This is working well, except that when I add many entries and it spans multiple lines, the box does not expand to accommodate them (see image below).

Can anyone please suggest the best way to make the box expand?

The entries overflowing

1

There are 1 answers

0
Martin Eve On

OK, this turned out to be much easier than I thought. Whoops.

For .custom-select, .select2-selection.custom-select set:

min-height: 3rem !important;
height: auto !important;