bootstrap-slider-rails 4.14.5 → 5.0.13
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a08628c8b89bc8542528b9b8e2a96878483569
|
4
|
+
data.tar.gz: 01448904d5b7cfa8b999ea7f0e9d10b38e44770d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f1e0837090015ee772dcc55bd57deecf6db709c8b2096849209d5d54b5c55b978c94798c16a047004a5e6b40f6eced537b5a4eeffc33163b1bf77962570dea
|
7
|
+
data.tar.gz: d3a371a8e031525d0467cf976fc8beef2966372be13b419fd271871ce3f8decb378da7bbcee8ee4c363df6ae00b3162179a28491daa8a3c5cfa4939450ed5c73
|
@@ -1035,40 +1035,6 @@
|
|
1035
1035
|
}
|
1036
1036
|
}
|
1037
1037
|
|
1038
|
-
if (this.options.orientation === 'vertical') {
|
1039
|
-
this.trackLow.style.top = '0';
|
1040
|
-
this.trackLow.style.height = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1041
|
-
|
1042
|
-
this.trackSelection.style.top = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1043
|
-
this.trackSelection.style.height = Math.abs(positionPercentages[0] - positionPercentages[1]) +'%';
|
1044
|
-
|
1045
|
-
this.trackHigh.style.bottom = '0';
|
1046
|
-
this.trackHigh.style.height = (100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1])) +'%';
|
1047
|
-
}
|
1048
|
-
else {
|
1049
|
-
this.trackLow.style.left = '0';
|
1050
|
-
this.trackLow.style.width = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1051
|
-
|
1052
|
-
this.trackSelection.style.left = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1053
|
-
this.trackSelection.style.width = Math.abs(positionPercentages[0] - positionPercentages[1]) +'%';
|
1054
|
-
|
1055
|
-
this.trackHigh.style.right = '0';
|
1056
|
-
this.trackHigh.style.width = (100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1])) +'%';
|
1057
|
-
|
1058
|
-
var offset_min = this.tooltip_min.getBoundingClientRect();
|
1059
|
-
var offset_max = this.tooltip_max.getBoundingClientRect();
|
1060
|
-
|
1061
|
-
if (offset_min.right > offset_max.left) {
|
1062
|
-
this._removeClass(this.tooltip_max, 'top');
|
1063
|
-
this._addClass(this.tooltip_max, 'bottom');
|
1064
|
-
this.tooltip_max.style.top = 18 + 'px';
|
1065
|
-
} else {
|
1066
|
-
this._removeClass(this.tooltip_max, 'bottom');
|
1067
|
-
this._addClass(this.tooltip_max, 'top');
|
1068
|
-
this.tooltip_max.style.top = this.tooltip_min.style.top;
|
1069
|
-
}
|
1070
|
-
}
|
1071
|
-
|
1072
1038
|
var formattedTooltipVal;
|
1073
1039
|
|
1074
1040
|
if (this.options.range) {
|
@@ -1120,6 +1086,40 @@
|
|
1120
1086
|
this._css(this.tooltip, 'margin-left', -this.tooltip.offsetWidth / 2 + 'px');
|
1121
1087
|
}
|
1122
1088
|
}
|
1089
|
+
|
1090
|
+
if (this.options.orientation === 'vertical') {
|
1091
|
+
this.trackLow.style.top = '0';
|
1092
|
+
this.trackLow.style.height = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1093
|
+
|
1094
|
+
this.trackSelection.style.top = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1095
|
+
this.trackSelection.style.height = Math.abs(positionPercentages[0] - positionPercentages[1]) +'%';
|
1096
|
+
|
1097
|
+
this.trackHigh.style.bottom = '0';
|
1098
|
+
this.trackHigh.style.height = (100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1])) +'%';
|
1099
|
+
}
|
1100
|
+
else {
|
1101
|
+
this.trackLow.style.left = '0';
|
1102
|
+
this.trackLow.style.width = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1103
|
+
|
1104
|
+
this.trackSelection.style.left = Math.min(positionPercentages[0], positionPercentages[1]) +'%';
|
1105
|
+
this.trackSelection.style.width = Math.abs(positionPercentages[0] - positionPercentages[1]) +'%';
|
1106
|
+
|
1107
|
+
this.trackHigh.style.right = '0';
|
1108
|
+
this.trackHigh.style.width = (100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1])) +'%';
|
1109
|
+
|
1110
|
+
var offset_min = this.tooltip_min.getBoundingClientRect();
|
1111
|
+
var offset_max = this.tooltip_max.getBoundingClientRect();
|
1112
|
+
|
1113
|
+
if (offset_min.right > offset_max.left) {
|
1114
|
+
this._removeClass(this.tooltip_max, 'top');
|
1115
|
+
this._addClass(this.tooltip_max, 'bottom');
|
1116
|
+
this.tooltip_max.style.top = 18 + 'px';
|
1117
|
+
} else {
|
1118
|
+
this._removeClass(this.tooltip_max, 'bottom');
|
1119
|
+
this._addClass(this.tooltip_max, 'top');
|
1120
|
+
this.tooltip_max.style.top = this.tooltip_min.style.top;
|
1121
|
+
}
|
1122
|
+
}
|
1123
1123
|
},
|
1124
1124
|
_removeProperty: function(element, prop) {
|
1125
1125
|
if (element.style.removeProperty) {
|
@@ -1396,8 +1396,7 @@
|
|
1396
1396
|
}
|
1397
1397
|
},
|
1398
1398
|
_setDataVal: function(val) {
|
1399
|
-
|
1400
|
-
this.element.setAttribute('data', value);
|
1399
|
+
this.element.setAttribute('data-value', val);
|
1401
1400
|
this.element.setAttribute('value', val);
|
1402
1401
|
this.element.value = val;
|
1403
1402
|
},
|