I'm not sure I completely follow the scenario you mention. Would be it
possible to put together an example showing it? That would help me to
visualise the problem and your solution.
A fork and a pull request on github is a great way to go - sometimes
it's easier to understand code than descriptions!
Thanks,
Kelvin :)
p.s. When you load new content into the scrollpane are you using the
.getContentPane() method to load it into the correct place?
Thanks for the detailed example.
Weirdly it seems to work for me correctly (but intermittently) in
Firefox and Chrome. But sometimes I do see what you describe below.
Looking at the jScrollPane code it looks like I'm not setting
contentWidth/height before checking it (so "previousContentWidth ==
contentWidth" will always be true). This seems to be to be the cause of
the bug you are seeing but I will have to investigate further to see why
the order of the code is as it is... It may be a bug I introduced in
https://github.com/vitch/jScrollPane/commit/f9187640b489620630bdae047b4df8a2535a3fcb
You could see if you have the problem with beta 9 (
https://github.com/vitch/jScrollPane/commits/2.0.0beta9 ) which has
different code for calculating the width... Although from a quick look
it looks like the order is the same...
I'll investigate further when I get a chance and will let you know how
it turns out,
Cheers,
Kelvin :)
http://jscrollpane.kelvinluck.com/image.html
ok, now I did a reinitialise on onLoad of the img, sometimes it works sometimes not. So I also wrote the height and width into the img tag and now I think it looks good.
I'll be back if not. :O)
PS: Here you can see your scrollpane work:
Thank you for this great Plugin.
> --
> You received this message because you are subscribed to the Google Groups "jscrollpane" group.
> To post to this group, send email to jscro...@googlegroups.com.
> To unsubscribe from this group, send email to jscrollpane...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jscrollpane?hl=en.
>
--
dj...@gmx.ch <dj...@gmx.ch>