inuyaksa/jquery.nicescroll — pull request #10 by ericdc1 (2011-12-01 03:49:28+00:00)
Title: Added function to reset scroller. I am using niceScroll in a drag/drop p...

...anel scenario and any action that changes the panel breaks the scroller. If I minimize the panel, close it, add a new panel or move a panel the scroller artifact stays behind in the original location.

My proposal is to add a class to the scroller and add a function to reset that effectively undoes what the binding call adds and then refires the binding call.

See these examples - be sure to drag/drop move a panel to see the broken and fixed versions.

http://ericcoffman.net/panels/broken.html
http://ericcoffman.net/panels/fixed.html