You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently there is the option to set the
height
of theul
.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 theul
will be the same height as the list until themax-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.
The text was updated successfully, but these errors were encountered: