bootstrap-duallistbox icon indicating copy to clipboard operation
bootstrap-duallistbox copied to clipboard

Retaining scroll position in Non-selected (left) listbox when many elements

Open Guy--L opened this issue 9 years ago • 4 comments

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);
  }

Guy--L avatar Mar 14 '15 17:03 Guy--L

late, but thanks :-)

docpitz avatar Jun 10 '20 15:06 docpitz

?

Guy--L avatar Jun 10 '20 16:06 Guy--L

I have searched for a very long time for a solution and found it here. I just wanted to say thank you.

docpitz avatar Jun 10 '20 16:06 docpitz

Awesome. There was some fine tuning of my PR to allow spaces.

Guy--L avatar Jun 10 '20 17:06 Guy--L