We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 616d77d commit 86a3167Copy full SHA for 86a3167
src/components/rangeselector/draw.js
@@ -68,7 +68,7 @@ module.exports = function draw(gd) {
68
});
69
70
// N.B. this mutates selectorLayout
71
- reposition(gd, buttons, selectorLayout);
+ reposition(gd, buttons, selectorLayout, axisLayout._name);
72
73
selector.attr('transform', 'translate(' +
74
selectorLayout.lx + ',' + selectorLayout.ly +
@@ -143,7 +143,7 @@ function getLabel(opts) {
143
return opts.label || opts.count + ' ' + opts.step.charAt(0);
144
}
145
146
-function reposition(gd, buttons, opts) {
+function reposition(gd, buttons, opts, axName) {
147
opts.width = 0;
148
opts.height = 0;
149
@@ -230,7 +230,7 @@ function reposition(gd, buttons, opts) {
230
opts.lx = Math.round(opts.lx);
231
opts.ly = Math.round(opts.ly);
232
233
- Plots.autoMargin(gd, 'range-selector', {
+ Plots.autoMargin(gd, axName + '-range-selector', {
234
x: opts.x,
235
y: opts.y,
236
l: opts.width * ({right: 1, center: 0.5}[xanchor] || 0),
0 commit comments