bootstrap-duallistbox
bootstrap-duallistbox copied to clipboard
Retaining scroll position in Non-selected (left) listbox when many elements
A prior issue addressed retaining scroll position when changing the filter.
Because there are many items to choose from (not alphabetically, but functionally, sorted) we needed to retain the scroll position after the element clicked has been moved. My apologies for not completing a formal pull request.
function move(dualListbox) {
var scrollPos = dualListbox.elements.select1.scrollTop(); // new line
...
refreshSelects(dualListbox);
dualListbox.elements.select1.scrollTop(scrollPos); // new line
triggerChangeEvent(dualListbox);
sortOptions(dualListbox.elements.select2);
}
late, but thanks :-)
?
I have searched for a very long time for a solution and found it here. I just wanted to say thank you.
Awesome. There was some fine tuning of my PR to allow spaces.