Skip to content

Commit 0e4abf9

Browse files
authored
Merge pull request #14 from Displayr/VIS-992
VIS-992: fix no DOM element with id... error
2 parents 1b3d485 + b25bc4b commit 0e4abf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/htmlwidgets/plotly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ HTMLWidgets.widget({
1010
if (instance.autosize) {
1111
var width = instance.width || width;
1212
var height = instance.height || height;
13-
Plotly.relayout(el.id, {width: width, height: height});
13+
Plotly.relayout(el, {width: width, height: height});
1414
}
1515
},
1616

0 commit comments

Comments
 (0)