Skip to content

Commit ca23f6c

Browse files
committed
Do not round off the legend location
* Commented out the statements to round off the legend location, in order to reproduce the baseline images. * There are still 4 image tests that fail: 27, 5, autorange-tozero-rangemode, and range-selector-style. All these mocks locate the legend above the axis (i.e. y > 1).
1 parent 680dcd3 commit ca23f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/legend/draw.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ module.exports = function draw(gd) {
195195
ly -= opts.height / 2;
196196
}
197197

198-
lx = Math.round(lx);
199-
ly = Math.round(ly);
198+
//lx = Math.round(lx);
199+
//ly = Math.round(ly);
200200

201201
// Make sure the legend top is below the top margin
202202
if(ly < fullLayout.margin.t) ly = fullLayout.margin.t;

0 commit comments

Comments
 (0)