From 31abf7e33ad2a3ad78a630e5a095eab12fd9f550 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 14 Oct 2011 14:14:09 -0400 Subject: [PATCH] In my case the orbit.width() was being set to a value greater than the slide width. orbitWidth never gets set with this case causing the animations to fail. I added a way to set orbitWidth no matter if the slide width is greater or not. After writing this it might just be better to set a default in the initialization but you can do that. --- jquery.orbit-1.2.3.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/jquery.orbit-1.2.3.js b/jquery.orbit-1.2.3.js index 00df279..2442bb3 100644 --- a/jquery.orbit-1.2.3.js +++ b/jquery.orbit-1.2.3.js @@ -59,12 +59,16 @@ _slideHeight = _slide.height(); if(_slideWidth > orbit.width()) { orbit.add(orbitWrapper).width(_slideWidth); - orbitWidth = orbit.width(); - } - if(_slideHeight > orbit.height()) { + } + // setting this because orbit width is not always less than slidewidth + // and orbitHeight and width aren't initialized + orbitWidth = orbit.width(); + if(_slideHeight > orbit.height()) { orbit.add(orbitWrapper).height(_slideHeight); - orbitHeight = orbit.height(); - } + } + // setting this because orbit height is not always less than slideheight + // and orbitHeight and width aren't initialized + orbitHeight = orbit.height(); numberSlides++; });