Permalink
Browse files

moved onSliderLoad to animateHeight callback

  • Loading branch information...
1 parent 4efd720 commit 352c423da5e1ebd658b88c7c9a92033ed3b85538 Steven Wanderski committed Nov 15, 2012
Showing with 5 additions and 4 deletions.
  1. +4 −3 jquery.bxslider.js
  2. +1 −1 jquery.bxslider.min.js
View
@@ -202,11 +202,12 @@
// if "vertical" mode, always use adaptiveHeight to prevent odd behavior
if (slider.settings.mode == 'vertical') slider.settings.adaptiveHeight = true;
// set the viewport height
- slider.viewport.animate({height: getViewportHeight()}, 200);
+ slider.viewport.animate({height: getViewportHeight()}, 200, function(){
+ // onSliderLoad callback
+ slider.settings.onSliderLoad();
+ });
// if auto is true, start the show
if (slider.settings.auto && slider.settings.autoStart) initAuto();
- // onSliderLoad callback
- slider.settings.onSliderLoad();
});
}
Oops, something went wrong.

0 comments on commit 352c423

Please sign in to comment.