Skip to content

Commit 1c8702a

Browse files
committed
improved test to be integer
1 parent 55ede35 commit 1c8702a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/plot_api/plot_api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ exports.plot = function(gd, data, layout, config) {
261261
if(regl) {
262262
// Unfortunately, this can happen when relayouting to large
263263
// width/height on some browsers.
264-
if(fullLayout.width !== regl._gl.drawingBufferWidth ||
265-
fullLayout.height !== regl._gl.drawingBufferHeight
264+
if(Math.floor(fullLayout.width) !== regl._gl.drawingBufferWidth ||
265+
Math.floor(fullLayout.height) !== regl._gl.drawingBufferHeight
266266
) {
267267
var msg = 'WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.';
268268
if(drawFrameworkCalls) {

0 commit comments

Comments
 (0)