Skip to content

Commit b749dfe

Browse files
JustinCCYapchschan
authored andcommitted
Pass element instead of ID
1 parent 719eaac commit b749dfe

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
@@ -11,7 +11,7 @@ HTMLWidgets.widget({
1111
if (instance.autosize) {
1212
var width = instance.width || width;
1313
var height = instance.height || height;
14-
Plotly.relayout(el.id, {width: width, height: height});
14+
Plotly.relayout(el, {width: width, height: height});
1515
}
1616
},
1717

0 commit comments

Comments
 (0)