Fixing resize again. Fixes #183. (#184)

This commit is contained in:
Jake Archibald
2018-10-09 13:34:38 +01:00
committed by GitHub
parent 48bb58dc89
commit a1f0b81dff
2 changed files with 6 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ export default class Output extends Component<Props, State> {
ref={linkRef(this, 'pinchZoomLeft')}
>
<canvas
class={style.outputCanvas}
ref={linkRef(this, 'canvasLeft')}
width={leftImg.width}
height={leftImg.height}
@@ -182,6 +183,7 @@ export default class Output extends Component<Props, State> {
</pinch-zoom>
<pinch-zoom ref={linkRef(this, 'pinchZoomRight')}>
<canvas
class={style.outputCanvas}
ref={linkRef(this, 'canvasRight')}
width={rightImg.width}
height={rightImg.height}