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 ab02ea4 commit 04c5e75Copy full SHA for 04c5e75
src/components/legend/draw.js
@@ -319,9 +319,8 @@ function _draw(gd, legendObj) {
319
var transform = Drawing.getTranslate(legend);
320
x0 = transform.x;
321
y0 = transform.y;
322
- var bbox = legend.node().getBBox();
323
- legendWidth = bbox.width;
324
- legendHeight = bbox.height;
+ legendWidth = legendObj._width;
+ legendHeight = legendObj._height;
325
},
326
moveFn: function(dx, dy) {
327
var newX = x0 + dx;
0 commit comments