Skip to content

Commit 684195a

Browse files
committed
Fix resizing layout
1 parent cb2729e commit 684195a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/plot_api/plot_api.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,13 @@ Plotly.plot = function(gd, data, layout, config) {
225225
'height': '100%',
226226
'overflow': 'visible',
227227
'pointer-events': 'none'
228-
})
229-
.attr('width', fullLayout.width)
230-
.attr('height', fullLayout.height);
228+
});
231229
}
232230

231+
fullLayout._glcanvas
232+
.attr('width', fullLayout.width)
233+
.attr('height', fullLayout.height);
234+
233235
return Lib.syncOrAsync([
234236
subroutines.layoutStyles
235237
], gd);

0 commit comments

Comments
 (0)