max-height for dynamic lists
Currently there is the option to set the height of the ul.
In my case and in for many other people the list of item to be is not a fixed list.
If i set the height for 250px for instance and i get only 1 item, the list will be empty.
The solution is to implement a max-height instead of height, that way the ul will be the same height as the list until the max-height specified.
I have fiddled with the concept a bit and found that it only requires to change the attribute to max-height (of course need to change var names for obvious reasons).
from this:
In the template: 'height' : settings.scrollable ? settings.scrollableHeight : 'auto'
to this:
In the template: 'max-height' : settings.scrollable ? settings.scrollableHeight : 'auto'
p.s. : there might be more cases but i didn't have time to check all cases.