Skip to content

Commit b1155a3

Browse files
committed
book-keep range slider id
1 parent 697ed3a commit b1155a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/rangeslider/draw.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ module.exports = function(gd) {
8181
graphSize = fullLayout._size,
8282
domain = axisOpts.domain;
8383

84+
opts._id = constants.name + axisOpts._id;
8485
opts._width = graphSize.w * (domain[1] - domain[0]);
8586
opts._height = (fullLayout.height - margin.b - margin.t) * opts.thickness;
8687
opts._offsetShift = Math.floor(opts.borderwidth / 2);
@@ -123,7 +124,7 @@ module.exports = function(gd) {
123124

124125
var bb = axisOpts._boundingBox ? axisOpts._boundingBox.height : 0;
125126

126-
Plots.autoMargin(gd, constants.name + axisOpts._id, {
127+
Plots.autoMargin(gd, opts._id, {
127128
x: 0, y: 0, l: 0, r: 0, t: 0,
128129
b: opts._height + fullLayout.margin.b + bb,
129130
pad: 15 + opts._offsetShift * 2

0 commit comments

Comments
 (0)