Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
ChartEditor: workaround to fix initial chart size
Browse files Browse the repository at this point in the history
  • Loading branch information
n-riesco committed Mar 16, 2018
1 parent 44374c5 commit 61e2e46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/Settings/Preview/chart-editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ export default class ChartEditor extends React.Component {
const frames = gd && gd.frames;
const layout = gd && gd.layout;

window.dispatchEvent(new Event('resize'));

return (
<div>
<div style={{height: 400}}>
<PlotlyEditor
plotly={plotly}

Expand Down

1 comment on commit 61e2e46

@nicolaskruchten
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's about what's needed :)

Please # to comment.