jscrollpaneremove missing

728 views
Skip to first unread message

Owen

unread,
Sep 23, 2010, 6:43:12 AM9/23/10
to jscrollpane
Hi, i've downloaded the latest version (i think) - jScrollPane -
v2.0.0beta5 - 2010-09-18 - and there is no jscrollpaneremove
function. Is there a new way of achieving this?

Thanks - great tool btw ;)

owen

Kelvin Luck

unread,
Sep 23, 2010, 11:03:25 AM9/23/10
to jscro...@googlegroups.com
Hi,

Generally you shouldn't need a remove function any more as the plugin is
much better at dealing with changes to the size of its surroundings
(which was the main reason for the function in version 1.x). What is
your use-case which requires the remove function?

Cheers,

Kelvin :)

Owen

unread,
Sep 23, 2010, 1:21:13 PM9/23/10
to jscrollpane
;) it was to deal with changes of size in the surroundings! i never
just tested it without calling the remove and re-add with my own
width, height calculations. i ended up adding the remove function
back into your script which works fine. if i get a chance i'll see if
the vanilla v2 tool handles my scenario and report back if it doesn't.

thanks for responding.

one separate thing i have noticed that is different from version 1 is
that you sometimes get to see a glimpse of the browser's native
scrollbar before it is replaced at reload time (especially for
scrollpanes with large amounts of content - i.e. while it's filling up
the pane the browser's native scroll bars are visible and then once
the dom is complete it changes the scrollbars (obviously calling your
jscrollpane code at that stage). i never noticed that with version 1
- not sure what has changed.

thanks again
owen

Kelvin Luck

unread,
Sep 23, 2010, 1:37:17 PM9/23/10
to jscro...@googlegroups.com
On 23/09/2010 18:21, Owen wrote:
> ;) it was to deal with changes of size in the surroundings! i never
> just tested it without calling the remove and re-add with my own
> width, height calculations. i ended up adding the remove function
> back into your script which works fine. if i get a chance i'll see if
> the vanilla v2 tool handles my scenario and report back if it doesn't.
Cool. I'd definitely recommend using the vanilla jScrollPane 2. Here's
an example of it dealing with changes in the size of the container
(resize your browser window to see it in action):
http://jscrollpane.kelvinluck.com/dynamic_width.html

> thanks for responding.
>
> one separate thing i have noticed that is different from version 1 is
> that you sometimes get to see a glimpse of the browser's native
> scrollbar before it is replaced at reload time (especially for
> scrollpanes with large amounts of content - i.e. while it's filling up
> the pane the browser's native scroll bars are visible and then once
> the dom is complete it changes the scrollbars (obviously calling your
> jscrollpane code at that stage). i never noticed that with version 1
> - not sure what has changed.
Basically everything has changed. However, I wouldn't expect it to
influence this. There is a possibility that the initialisation
calculations are slightly slower (as they also deal with horizontal
scrolling now). One major change is that the contents of the scroll pane
is wrapped (rather than the element itself) - that could also have
contributed to this problem.

If you want to raise an issue on github with a link to a striped down
test case (see http://jscrollpane.kelvinluck.com/issues/7/ for a good
example - you just need to provide the "before") then I will look
further into it when I get a chance,

Thanks,

Kelvin :)

Reply all
Reply to author
Forward
0 new messages