zurb/orbit — Issue #94: Wrong slide height/width on AJAX request
Author: activestylus
Created: 2011-12-22 15:47:29+00:00
State: open

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