Skip to content

Commit

Permalink
Removes auto-centering when no pager or controls - v4.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwanderski committed Mar 8, 2017
1 parent 7f1782c commit 70a8434
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bxslider-4",
"version": "4.2.10",
"version": "4.2.11",
"homepage": "http://bxslider.com",
"license": "MIT",
"main": [
Expand Down
5 changes: 4 additions & 1 deletion dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://github.com/stevenwanderski/bxslider-4/issues/1095

---

#bxSlider 4.2.10
#bxSlider 4.2.11
##The fully-loaded, responsive jQuery content slider

###Why should I use this slider?
Expand Down Expand Up @@ -638,6 +638,9 @@ Everyone is welcome to help [contribute](CONTRIBUTING.md) and improve this proje

## Changelog

### Version 4.2.11
* Removes auto-centering for sliders with no pager or controls

### Version 4.2.10
* Bumps npm and bower versions

Expand Down
8 changes: 1 addition & 7 deletions dist/jquery.bxslider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* bxSlider v4.2.10
* bxSlider v4.2.11
* Copyright 2013-2015 Steven Wanderski
* Written while drinking Belgian ales and listening to jazz
* Licensed under MIT (http://opensource.org/licenses/MIT)
Expand Down Expand Up @@ -225,12 +225,6 @@
slider.viewport.parent().css({
maxWidth: getViewportMaxWidth()
});
// make modification to the wrapper (.bx-wrapper)
if (!slider.settings.pager && !slider.settings.controls) {
slider.viewport.parent().css({
margin: '0 auto 0px'
});
}
// apply css to all slider children
slider.children.css({
float: slider.settings.mode === 'horizontal' ? 'left' : 'none',
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.bxslider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bxslider",
"description": "Touch enabled jQuery plugin for creating responsive carousels and sliders.",
"version": "4.2.10",
"version": "4.2.11",
"homepage": "http://bxslider.com",
"author": {
"name": "Steven Wanderski",
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://github.com/stevenwanderski/bxslider-4/issues/1095

---

#bxSlider 4.2.10
#bxSlider 4.2.11
##The fully-loaded, responsive jQuery content slider

###Why should I use this slider?
Expand Down Expand Up @@ -638,6 +638,9 @@ Everyone is welcome to help [contribute](CONTRIBUTING.md) and improve this proje

## Changelog

### Version 4.2.11
* Removes auto-centering for sliders with no pager or controls

### Version 4.2.10
* Bumps npm and bower versions

Expand Down
8 changes: 1 addition & 7 deletions src/js/jquery.bxslider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* bxSlider v4.2.10
* bxSlider v4.2.11
* Copyright 2013-2015 Steven Wanderski
* Written while drinking Belgian ales and listening to jazz
* Licensed under MIT (http://opensource.org/licenses/MIT)
Expand Down Expand Up @@ -225,12 +225,6 @@
slider.viewport.parent().css({
maxWidth: getViewportMaxWidth()
});
// make modification to the wrapper (.bx-wrapper)
if (!slider.settings.pager && !slider.settings.controls) {
slider.viewport.parent().css({
margin: '0 auto 0px'
});
}
// apply css to all slider children
slider.children.css({
float: slider.settings.mode === 'horizontal' ? 'left' : 'none',
Expand Down

0 comments on commit 70a8434

Please sign in to comment.