Skip to content

Commit

Permalink
fix(VTKRenderer): Defer resizing of renderer
Browse files Browse the repository at this point in the history
This is so renderer can resize after first update.
  • Loading branch information
floryst committed Apr 26, 2018
1 parent 8ad0b22 commit 1a7c777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/VTKRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class VTKRenderer extends React.Component {
// this.state.controlRods
);
this.pipeline.resetCamera();
this.pipeline.resize();
setTimeout(() => this.pipeline.resize(), 1);
window.addEventListener('resize', this.resize);

// Force a second render to flush actorVisibility switch
Expand Down

0 comments on commit 1a7c777

Please sign in to comment.