add render

This commit is contained in:
casperlamboo 2017-11-14 02:50:26 +01:00
parent 72667791cd
commit 0314078463

View File

@ -48,9 +48,10 @@ class DoodlePreview extends React.Component {
onResize = (width, height) => { onResize = (width, height) => {
window.requestAnimationFrame(() => { window.requestAnimationFrame(() => {
const { setSize } = this.state; const { setSize, render } = this.state;
const { pixelRatio } = this.props; const { pixelRatio } = this.props;
setSize(width, height, pixelRatio); setSize(width, height, pixelRatio);
render();
}); });
}; };