Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #722 from danekszy/develop

Use viewport (instead of slider) width for calculations
  • Loading branch information...
commit 182cac6affdd1f5b3c0be9cf96754d8af0a47b85 2 parents 7451aae + 77e45f9
@mattyza mattyza authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.flexslider.js
View
2  jquery.flexslider.js
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.