Smooth-Div-Scroll icon indicating copy to clipboard operation
Smooth-Div-Scroll copied to clipboard

bug with IE and Flickr loading

Open zadro opened this issue 13 years ago • 6 comments

Great plugin! Thank you very much for your continued development.

We're getting ready to launch a new site and are still in development. I've implemented the Flickr feed "replace" event. It works great in FF/Chrome/Safari but IE only shows 1 picture and the scrollable areas are not working.

Thanks very much in advance.

zadro avatar Sep 11 '12 18:09 zadro

I found a temporary workaround for IE. Looks like IE can't calculate the carousel width, so...

<div id="makeMeScrollable">
        <div class="flickrFake"></div>
</div>

Then before calling the "replace" method, I set the width:

$(".flickrFake").css("width", '2916px' );

It would be nice if if can calculate the width of the Flickr feed. Also, would be nice to have linking on the Flickr images to the photostream and set the number of desired returned images.

zadro avatar Sep 16 '12 14:09 zadro

Have you tried loading the content on initialization, like this:

$('#makeMeScrollable').smoothDivScroll({
    getContentOnLoad: {
        method: "getFlickrContent",
        content: "http://api.flickr.com/services/feeds/photos_public.gne?id=86282415@N04&format=json&jsoncallback=?",
        manipulationMethod: "replace"
    }
});

Loading flickr content on initialization is new in version 1.3.

/Thomas

tkahn avatar Sep 17 '12 07:09 tkahn

Hi Thomas,

Thank you for responding. Unfortunately, that does not work either. It seems that IE does not register the "overflow" CSS property correctly and/or smoothdivscroll does not set the "makeMeScrollable" width before scroll?

With my example above, if you can push the calculated width to "flickrFake" via outerWidth(), I think that would solve the problem. Is this possible? Or, it's a simple CSS fix that I can't figure out...

Thanks again,

Dario

zadro avatar Sep 17 '12 14:09 zadro

I've tried your demo page in Internet Explorer 9 and used the compatibility view to simulate various older version of IE, but fow me the scroller works every time(?)

Is it something that I haven't tried or is it the temporary work-around that kicks in?

tkahn avatar Sep 18 '12 08:09 tkahn

The workaround kicks in. If you notice, the IE version only shows 10 photos due to the workaround (rest are lost in overflow:hidden), while FF and Chrome show all the photos...I believe around 18 current photos.

zadro avatar Sep 18 '12 14:09 zadro

I am having the same problem with the overflow. After doing "getAjaxContent" it won't scroll because the width of "scrollableArea" is wrong and calling "recalculateScrollableArea" isn't fixing it.

hugo-warp avatar Sep 27 '12 07:09 hugo-warp