synthing

a waveform sequencing synth on the web
Log | Files | Refs | Submodules

commit 44efe36343de0937fb5d4bf667f0ce50b53c2efe
parent 108684b5e5e27a45551461832bd5f285bb62929c
Author: Massimo Siboldi <mdsiboldi@gmail.com>
Date:   Fri, 16 Mar 2018 14:58:24 -0700

Fix resize for WaveTable, remove from things that aren't resized

Diffstat:
Msrc/WaveEditor/index.js | 2+-
Msrc/WaveManager/index.js | 1-
Msrc/WaveTable/index.js | 2+-
3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/WaveEditor/index.js b/src/WaveEditor/index.js @@ -74,7 +74,7 @@ export default class waveEditor extends Component { class="wave-editor" ref={(div) => {this.divRef = div}} > - <WaveTable waveform={this.props.waveform} /> + <WaveTable resize={true} waveform={this.props.waveform} /> </div> ); } diff --git a/src/WaveManager/index.js b/src/WaveManager/index.js @@ -52,7 +52,6 @@ export default class WaveManager extends Component { <div class="beats"> <div onClick={this.props.activate}> <WaveTable - resize={true} height={40} width={75} waveform={this.props.tone.waveform.slice()} diff --git a/src/WaveTable/index.js b/src/WaveTable/index.js @@ -42,7 +42,7 @@ export default class WaveTable extends Component { } render() { const height = this.props.height || 400; - const width = this.props.width || window.innerWidth - 120; + const width = this.props.width || window.innerWidth - 100; return ( <canvas class="wave-table"