Skip to content

Commit 909ffc9

Browse files
committed
Add comment about plotly.js resize function
1 parent 2852e17 commit 909ffc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/dash-core-components/src/fragments/Graph.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ class PlotlyGraph extends Component {
393393

394394
gd.classList.add('dash-graph--pending');
395395

396+
// Calling resize enables layout.autosize in plotly.js
396397
Plotly.Plots.resize(gd)
397398
.catch(() => {})
398399
.finally(() => gd.classList.remove('dash-graph--pending'));

0 commit comments

Comments
 (0)