jeffreyhi1 / jscrollpane

Automatically exported from code.google.com/p/jscrollpane
0 stars 0 forks source link

Anything but <p> tags work? #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add thumbnails inside the jScroll div (not surrounded by <p> tags)

I'm trying to have a series of thumbnails inside the jScroll div and fire
off  the default scroll behavior.  Without wrapping each of them inside of
<p> tags, jScroll does not appear to be able to determine the height of the
content inside the div and will not work.  Is there a way to modify the the
JS so that it will look for anything other than <p> tags?

jScrollPane.js 24 2008-11-29

Original issue reported on code.google.com by bomb...@gmail.com on 3 Dec 2008 at 3:56

GoogleCodeExporter commented 9 years ago
The script doesn't rely on p tags in any way... If you look at my images 
example you
will see that the images aren't in p tags:

http://www.kelvinluck.com/assets/jquery/jScrollPane/imagesExample.html

You do need to pass

reinitialiseOnImageLoad: true

In when you create the scroll pane if you want it to automatically update as the
images are loaded.

If you have an example where you are doing this and the scroll pane isn't 
working
then please provide a URL for me to look at.

Original comment by kelvin.l...@gmail.com on 4 Dec 2008 at 5:23