Skip to content

Commit 3cbb60e

Browse files
Plots.resize - additional check for gd.layout
1 parent b931e4f commit 3cbb60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ plots.resize = function(gd) {
9090

9191
gd._redrawTimer = setTimeout(function() {
9292
// return if there is nothing to resize
93-
if(gd.layout.width && gd.layout.height) {
93+
if(gd.layout && gd.layout.width && gd.layout.height) {
9494
resolve(gd);
9595
return;
9696
}

0 commit comments

Comments
 (0)