watusi / jquery-mobile-iscrollview

JQuery Mobile widget plug-in for easy use of the iScroll javascript scroller.
408 stars 183 forks source link

No support for images? #119

Open njaal opened 10 years ago

njaal commented 10 years ago

I've tried to use your plugin with only images as content, but it doesn't seem to work? I might be doing it wrong though, but couldn't seem to find any information if this is supposed to work or not.

I have been using the example provided, when I only have text or lists as content, it works. But when replacing with only images, it doesn't seem to work.

Here is an example:

skjermbilde 2013-09-26 kl 12 49 48

frankie-loves-jesus commented 10 years ago

Best set up a testcase at JSFiddle.

jtara commented 10 years ago

Images need a definite size set, using either the <image> tag width and height options, or else CSS width/height.

Otherwise, you need to arrange to call refresh once the images are all loaded.

I've used this plugin successfully for that purpose:

http://desandro.github.io/imagesloaded/

jtara commented 10 years ago

Re-opening. The imagesloaded plugin should be mentioned in the documentation.