diff --git a/lib/addons/p5.dom.js b/lib/addons/p5.dom.js index 7c6351588a..4604438707 100644 --- a/lib/addons/p5.dom.js +++ b/lib/addons/p5.dom.js @@ -929,7 +929,7 @@ } this.elt.setAttribute('width', aW * this._pInst._pixelDensity); this.elt.setAttribute('height', aH * this._pInst._pixelDensity); - this.elt.setAttribute('style', 'width:' + aW + 'px !important; height:' + aH + 'px !important;'); + this.elt.setAttribute('style', 'width:' + aW + 'px; height:' + aH + 'px'); this._pInst.scale(this._pInst._pixelDensity, this._pInst._pixelDensity); for (var prop in j) { this.elt.getContext('2d')[prop] = j[prop];