Skip to content

Commit 96dfe03

Browse files
committed
Resize renderer when stage is remounted
Fixes TurboWarp/scratch-render#19 Also fixes blurrines when using a small stage size then leave editor
1 parent 552dc55 commit 96dfe03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/containers/stage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class Stage extends React.Component {
9090
this.attachRectEvents();
9191
this.attachMouseEvents(this.canvas);
9292
this.updateRect();
93+
this.renderer.resize(this.rect.width, this.rect.height);
9394
this.props.vm.runtime.addListener('QUESTION', this.questionListener);
9495
}
9596
shouldComponentUpdate (nextProps, nextState) {

0 commit comments

Comments
 (0)