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
When select has a lot of option (in my case 100+) I wanted to limit it to display only the 6 options with scroll. I use attribute data-size set to 6. But when i click to open select, isDropup flag is set to true, and option show above a select but is enough space to display options below button.
probably problem is in line:
estimate = liHeight * this.selectpicker.current.elements.length + menuPadding.vert;
proposition of fix that looks like it's working:
if (this.options.size !== 'auto') {
estimate = liHeight * this.options.size + menuPadding.vert;
} else {
estimate = liHeight * this.selectpicker.current.elements.length + menuPadding.vert;
}
bootstrap-select ver. 1.13.14
The text was updated successfully, but these errors were encountered:
When select has a lot of option (in my case 100+) I wanted to limit it to display only the 6 options with scroll. I use attribute data-size set to 6. But when i click to open select, isDropup flag is set to true, and option show above a select but is enough space to display options below button.
probably problem is in line:
estimate = liHeight * this.selectpicker.current.elements.length + menuPadding.vert;
proposition of fix that looks like it's working:
if (this.options.size !== 'auto') {
estimate = liHeight * this.options.size + menuPadding.vert;
} else {
estimate = liHeight * this.selectpicker.current.elements.length + menuPadding.vert;
}
bootstrap-select ver. 1.13.14
The text was updated successfully, but these errors were encountered: