Skip to content

Commit

Permalink
Merge pull request #722 from danekszy/develop
Browse files Browse the repository at this point in the history
Use viewport (instead of slider) width for calculations
  • Loading branch information
mattyza committed Jul 2, 2013
2 parents 7451aae + 77e45f9 commit 182cac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.flexslider.js
Expand Up @@ -908,7 +908,7 @@
minItems = slider.vars.minItems,
maxItems = slider.vars.maxItems;

slider.w = slider.width();
slider.w = (slider.viewport===undefined) ? slider.width() : slider.viewport.width();
slider.h = slide.height();
slider.boxPadding = slide.outerWidth() - slide.width();

Expand Down

0 comments on commit 182cac6

Please sign in to comment.