Skip to content

Commit a58069a

Browse files
committed
src/components/rangeslider/helpers.js
1 parent e9061a4 commit a58069a

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/components/rangeslider/helpers.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,16 @@ exports.makeData = function(fullLayout) {
1717
var margin = fullLayout.margin;
1818
var rangeSliderData = [];
1919

20-
if(!fullLayout._has('gl2d')) {
21-
for(var i = 0; i < axes.length; i++) {
22-
var ax = axes[i];
20+
for(var i = 0; i < axes.length; i++) {
21+
var ax = axes[i];
2322

24-
if(isVisible(ax)) {
25-
rangeSliderData.push(ax);
23+
if(isVisible(ax)) {
24+
rangeSliderData.push(ax);
2625

27-
var opts = ax[name];
28-
opts._id = name + ax._id;
29-
opts._height = (fullLayout.height - margin.b - margin.t) * opts.thickness;
30-
opts._offsetShift = Math.floor(opts.borderwidth / 2);
31-
}
26+
var opts = ax[name];
27+
opts._id = name + ax._id;
28+
opts._height = (fullLayout.height - margin.b - margin.t) * opts.thickness;
29+
opts._offsetShift = Math.floor(opts.borderwidth / 2);
3230
}
3331
}
3432

0 commit comments

Comments
 (0)