Skip to content

Commit 9070d16

Browse files
author
James Bradbury
committed
Merge branch 'fix/fluid.waveform-init-errors' into devel
2 parents 4df3d00 + 5b3227a commit 9070d16

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

jsui/fluid.waveform~.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,12 @@ function ondrag (x, y, button, mod1, shift, caps, opt, mod2) {
616616
function onresize (x, y, button, mod1, shift, caps, opt, mod2) {
617617
width = box.rect[2] - box.rect[0];
618618
height = box.rect[3] - box.rect[1];
619-
disp.canvas.width = width;
620-
disp.canvas.height = height;
621-
redrawNeeded = true;
619+
620+
if (disp) {
621+
disp.canvas.width = width;
622+
disp.canvas.height = height;
623+
redrawNeeded = true;
624+
}
622625
}
623626

624627
function onidle (x, y, button, mod1, shift, caps, opt, mod2) {

0 commit comments

Comments
 (0)