fredleblanc / roundabout

A 3D Turntable jQuery Plugin.
645 stars 203 forks source link

Positionning problem on the first load #79

Open Spheerys opened 12 years ago

Spheerys commented 12 years ago

Hi,

I have a positionning problem under Chromium with roundabout.

Here the demo : http://gravillas.spheerys.fr/

With Firefox/Opera, that works correctly, but with Chromium/Chrome, on the first load (or with pressing F5 on the home page), the roundabout is shifting (have a look here : http://img.spheerys.fr/images/gravillas.png) If you change page and come back to the "Nos Vins" page (home page), the roundabout is set correctly.

Here the js code :

$('#roundabout').roundabout({ autoplay: true, autoplayDuration: 4000, childSelector: '.vin', minOpacity: 0.1, minScale: 1, maxScale: 0.7, focusBearing: 1, autoplayPauseOnHover: true });

Any idea where the problem comes from ?

Spheerys commented 12 years ago

Precision : le problem occurs each time I load the home page for the first time (tested on IE9, FF/Win, Chromium/Linux...)

I really love this script but my customer just want a working website :(

Spheerys commented 12 years ago

My customer wants the site online quickly, so I'm looking for another casourel... but I'm still interested by an issue !!

bradgreens commented 12 years ago

Similar to #80, this may be an issue with cache/un-cached images causing the Roundabout calculations to be thrown off. See my comment in #80 or if you're in a real hurry consider a setTimeout for initialization. That's not ideal but it might get you up and running.