p5.js-editor icon indicating copy to clipboard operation
p5.js-editor copied to clipboard

popup window not resizing to fit canvas if vars used in createCanvas() call

Open lmccart opened this issue 9 years ago • 0 comments

From @AnneCHPostma (https://github.com/processing/p5.js/issues/1346):

When I have the following code:

var canvasWidth = 800;
var canvasHeight = 400;

function setup() {
  createCanvas(canvasWidth, canvasHeight);

The canvas is not accepting the arguments and doesn't resize properly. This issue is only happening in p5 itself. When I do this in CodePen it is working fine. So the arguments seem to get accepted, but when the arguments are not actual numbers, the window somehow doesn't get resized properly.

lmccart avatar Apr 02 '16 19:04 lmccart