orbit icon indicating copy to clipboard operation
orbit copied to clipboard

Wrong slide height/width on AJAX request

Open activestylus opened this issue 13 years ago • 2 comments
trafficstars

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

activestylus avatar Dec 22 '11 15:12 activestylus

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

ghost avatar Jan 27 '12 19:01 ghost

I tried on both success and complete callbacks. No luck

activestylus avatar Jan 27 '12 23:01 activestylus