Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be05b1c

Browse filesBrowse files
committed
Gate _glcanvas check
1 parent d5f0962 commit be05b1c
Copy full SHA for be05b1c

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed

‎src/plot_api/plot_api.js

Copy file name to clipboardExpand all lines: src/plot_api/plot_api.js
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,11 @@ Plotly.plot = function(gd, data, layout, config) {
228228
});
229229
}
230230

231-
fullLayout._glcanvas
232-
.attr('width', fullLayout.width)
233-
.attr('height', fullLayout.height);
234-
231+
if(fullLayout._glcanvas) {
232+
fullLayout._glcanvas
233+
.attr('width', fullLayout.width)
234+
.attr('height', fullLayout.height);
235+
}
235236

236237
return Lib.syncOrAsync([
237238
subroutines.layoutStyles

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.