zurb / orbit

454 stars 96 forks source link

Wrong slide height/width on AJAX request #94

Open activestylus opened 12 years ago

activestylus commented 12 years ago

If I call orbit() on an element which has just been added to the dom via AJAX, the image window is often tiny (40x70px).

The sizing is pretty random - I do notice that if I click on the same link a second time it loads correctly, but the first load is often quite bad.

Tinkering with the source I went in and hardcoded the desired width and height

_slideWidth = 400,
_slideHeight = 400;

Total monkey patch but it works for my current project - however this is something you guys should definitely test out as it can be a show-stopper for any sites that heavily use AJAX

ghost commented 12 years ago

You tryied to initiate the orbit in your success ajax function?

activestylus commented 12 years ago

I tried on both success and complete callbacks. No luck