Skip to content

Commit 3e83a1a

Browse files
committed
fix(labels): Fix overlapping max and ceil labels in some cases
fix #396
1 parent 3ab3aa3 commit 3e83a1a

9 files changed

+18
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 5.8.5 (2016-11-05)
2+
## Fix
3+
- Fix overlapping max and ceil labels in some cases (#396)
4+
15
# 5.8.4 (2016-11-05)
26
## Improvement
37
- Refactor autoHiding algorithm for labels (fix #446)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-slider",
3-
"version": "5.8.4",
3+
"version": "5.8.5",
44
"homepage": "https://github.com/angular-slider/angularjs-slider",
55
"authors": [
66
"Rafal Zajac <rzajac@gmail.com>",

dist/rzslider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angularjs-slider - v5.8.4 -
1+
/*! angularjs-slider - v5.8.5 -
22
(c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervieu.me>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> -
33
https://github.com/angular-slider/angularjs-slider -
44
2016-11-05 */

dist/rzslider.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angularjs-slider - v5.8.4 -
1+
/*! angularjs-slider - v5.8.5 -
22
(c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervieu.me>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> -
33
https://github.com/angular-slider/angularjs-slider -
44
2016-11-05 */
@@ -1343,6 +1343,9 @@
13431343
this.showEl(this.minLab);
13441344
this.hideEl(this.cmbLab);
13451345
}
1346+
if (this.options.autoHideLimitLabels) {
1347+
this.shFloorCeil();
1348+
}
13461349
},
13471350

13481351
/**

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angularjs-slider - v5.8.4 -
1+
/*! angularjs-slider - v5.8.5 -
22
(c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervieu.me>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> -
33
https://github.com/angular-slider/angularjs-slider -
44
2016-11-05 */

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-slider",
3-
"version": "5.8.4",
3+
"version": "5.8.5",
44
"description": "AngularJS slider directive with no external dependencies. Mobile friendly!.",
55
"main": "dist/rzslider.js",
66
"repository": {

src/rzslider.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,9 @@
13471347
this.showEl(this.minLab);
13481348
this.hideEl(this.cmbLab);
13491349
}
1350+
if (this.options.autoHideLimitLabels) {
1351+
this.shFloorCeil();
1352+
}
13501353
},
13511354

13521355
/**

0 commit comments

Comments
 (0)