diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-06 17:57:25 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-06 17:57:25 +0200 |
| commit | 6f5ff3cdfac3fc154281fdda7c1ec9ff7ebbd1fa (patch) | |
| tree | 9a51dd4b32edf3b1bc8c24d95273575dab774d34 /animism-align/frontend/views/align/components/timeline/waveform.component.js | |
| parent | 349ee65db67aa0d28d3861530e8e7e1b5cc27c48 (diff) | |
paragraph list view
Diffstat (limited to 'animism-align/frontend/views/align/components/timeline/waveform.component.js')
| -rw-r--r-- | animism-align/frontend/views/align/components/timeline/waveform.component.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/animism-align/frontend/views/align/components/timeline/waveform.component.js b/animism-align/frontend/views/align/components/timeline/waveform.component.js index 785b020..16ceaf6 100644 --- a/animism-align/frontend/views/align/components/timeline/waveform.component.js +++ b/animism-align/frontend/views/align/components/timeline/waveform.component.js @@ -6,7 +6,7 @@ import { connect } from 'react-redux' import actions from '../../../../actions' // import * as uploadActions from './upload.actions' -import { WAVEFORM_SIZE, ZOOM_STEPS, ZOOM_LABEL_STEPS, ZOOM_TICK_STEPS } from '../../constants' +import { WAVEFORM_SIZE, ZOOM_STEPS, ZOOM_LABEL_STEPS, ZOOM_TICK_STEPS, INNER_HEIGHT } from '../../constants' class Waveform extends Component { constructor(props){ @@ -23,12 +23,12 @@ class Waveform extends Component { resize() { const canvas = this.canvasRef.current canvas.width = WAVEFORM_SIZE - canvas.height = window.innerHeight + canvas.height = INNER_HEIGHT } draw() { const canvas = this.canvasRef.current const ctx = canvas.getContext('2d') - const h = window.innerHeight + const h = INNER_HEIGHT this.clearCanvas(ctx, h) this.drawCurve(ctx, h) } |
