Frage

I had a search around to see how to get jScrollPane working with textareas and found this: http://www.christianchown.com/blog/a-custom-jquery-scrollbar-in-a-textarea/

You can see a working example here: http://www.christianchown.com/demo/jScrollPaneTextarea.html

However in my own testing I haven't been able to get it working right for some reason; scroll bars always seem to show even when not needed (when it first loads) and when it does need them after typing it just loads the standard scroll bars as well.

Here is a fiddle: http://jsfiddle.net/Fndg3/7/

What am I missing here?

War es hilfreich?

Lösung

i think you just have to scroll a DIV that includes a textfield (and turn off scrollbars of the textfield, too ...). and maybe try another scroll script, i tested some and found that "http://manos.malihu.gr/jquery-custom-content-scroller/" is the most flexible and compatible.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top