Skip to content

Commit 56b1c87

Browse files
committed
use getBBox instead of getBoundingClientRect in assertPlotSize
1 parent 3a67416 commit 56b1c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jasmine/assets/custom_assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ exports.assertPlotSize = function(opts, msg) {
295295
var widthLessThan = opts.widthLessThan;
296296
var heightLessThan = opts.heightLessThan;
297297

298-
var plotBB = d3Select('.plotclip > rect').node().getBoundingClientRect();
298+
var plotBB = d3Select('.plotclip > rect').node().getBBox();
299299
var actualWidth = plotBB.width;
300300
var actualHeight = plotBB.height;
301301

0 commit comments

Comments
 (0)