Skip to content

Commit 0829b1c

Browse files
author
lauren mccarthy
committed
fixing scaling bug issue #386
1 parent 7b60ff6 commit 0829b1c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/p5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ var p5Graphics = function (require, core, constants) {
612612
this.height = h;
613613
this.elt.width = w * this._pInst._pixelDensity;
614614
this.elt.height = h * this._pInst._pixelDensity;
615-
this.elt.style.width = w + ' px';
616-
this.elt.style.height = h + ' px';
615+
this.elt.style.width = w + 'px';
616+
this.elt.style.height = h + 'px';
617617
if (this._isMainCanvas) {
618618
this._pInst._setProperty('width', this.width);
619619
this._pInst._setProperty('height', this.height);

0 commit comments

Comments
 (0)