commit f1e875b6ea90fe3630c26f9ada7aa3500ef04212
parent 89b543b02a6b9e85003b4ed3d35566d53b5ec765
Author: Massimo Siboldi <mdsiboldi@gmail.com>
Date:   Fri, 16 Mar 2018 21:30:06 -0700
Finish updating resize
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/WaveTable/index.js b/src/WaveTable/index.js
@@ -1,4 +1,4 @@
-import { h, Component} from 'preact';
+import { h, Component } from 'preact';
 import helpers from '../helpers';
 import consts from '../consts';
 import './style.css';
@@ -33,8 +33,9 @@ export default class WaveTable extends Component {
         }
         if (this.props.resize) {
             window.addEventListener('resize', (ev) => {
+                drawArea(this.props.waveform, this.canvasRef);
                 this.forceUpdate();
-            })
+            });
         }
     }
     componentWillReceiveProps(newProps) {