vitch/jScrollPane — Issue #125: jScrollPane doesn't stick to bottom
Author: Guido86
Created: 2012-01-12 14:38:06+00:00
State: open

I use jScrollPane for the scrollbars in a simple chat interface I designed. The issue I have here is that jScrollPane doesn't scroll to the bottom automatically. jScrollPane does have a handy option 'stickToBottom' that I've set to true and also I've set 'autoReinitalise' to true since content gets added to the specific div dynamically. Now, as soon as the chatbox is getting filled and scrollbars are added I expected jScrollPane to automatically scroll to the bottom and stick there. But this isn't the case. I first manually have to scroll to the bottom and then it will stick there. So I tried to create an innerdiv with the height 1 pixel more than it's parent (that has the scrollbars) so that from the beginning scrollbars are visible. Via the api I then scroll to 100% over the Y-axis so that the scrollhandle is totally down. But also in this case when my chatbox is being filled and content is exceeding the available space the scrollbar doesn't stick to the bottom, it even scrolls almost to the top again.

I've set up a very simple testpage that has this issue:

http://www.webtrail.nl/jscrollpane-example

Hope someone can help me out here. Thanks!

(See also: http://stackoverflow.com/questions/8535237/jscrollpane-doesnt-sitck-to-bottom)