Skip to content

Commit 73b29ff

Browse files
authored
Resize renderer when stage is remounted
Fixes TurboWarp/scratch-render#19 Also fixes blurriness when using a small stage size then leave editor
1 parent da701fb commit 73b29ff

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
@@ -95,6 +95,7 @@ class Stage extends React.Component {
9595
this.attachRectEvents();
9696
this.attachMouseEvents(this.canvas);
9797
this.updateRect();
98+
this.renderer.resize(this.rect.width, this.rect.height);
9899
this.props.vm.runtime.addListener('QUESTION', this.questionListener);
99100
}
100101
shouldComponentUpdate (nextProps, nextState) {

0 commit comments

Comments
 (0)