Skip to content

Commit 85b429a

Browse files
Added comments.
1 parent 32ee461 commit 85b429a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,12 @@ class PlotlyGraph extends Component {
378378
const {responsive} = this.props;
379379
let {style} = this.props;
380380

381+
// When there is no forced responsive style, return the original style property
381382
if (!responsive) {
382383
return style;
383384
}
384385

386+
// Otherwise, if the height is not set, we make the graph size equal to the parent one
385387
if (!style) {
386388
style = {};
387389
}

0 commit comments

Comments
 (0)