Skip to content

Commit

Permalink
apply children widths using .css(width) instead of .width() - stevenw…
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Wanderski committed Jun 6, 2013
1 parent f766856 commit 0601e49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.bxslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
position: 'relative'
});
// apply the calculated width after the float is applied to prevent scrollbar interference
slider.children.width(getSlideWidth());
slider.children.css('width', getSlideWidth());
// if slideMargin is supplied, add the css
if(slider.settings.mode == 'horizontal' && slider.settings.slideMargin > 0) slider.children.css('marginRight', slider.settings.slideMargin);
if(slider.settings.mode == 'vertical' && slider.settings.slideMargin > 0) slider.children.css('marginBottom', slider.settings.slideMargin);
Expand Down
Loading

0 comments on commit 0601e49

Please sign in to comment.