File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -3254,7 +3254,6 @@ p5.Element.prototype.size = function (w, h) {
3254
3254
let aW = w ;
3255
3255
let aH = h ;
3256
3256
const AUTO = p5 . prototype . AUTO ;
3257
-
3258
3257
if ( aW !== AUTO || aH !== AUTO ) {
3259
3258
if ( aW === AUTO ) {
3260
3259
aW = h * this . width / this . height ;
@@ -3273,7 +3272,6 @@ p5.Element.prototype.size = function (w, h) {
3273
3272
this . elt . setAttribute ( 'height' , aH * this . _pInst . _pixelDensity ) ;
3274
3273
this . elt . style . width = aW + 'px' ;
3275
3274
this . elt . style . height = aH + 'px' ;
3276
-
3277
3275
this . _pInst . scale ( this . _pInst . _pixelDensity , this . _pInst . _pixelDensity ) ;
3278
3276
for ( prop in j ) {
3279
3277
this . elt . getContext ( '2d' ) [ prop ] = j [ prop ] ;
@@ -3284,11 +3282,8 @@ p5.Element.prototype.size = function (w, h) {
3284
3282
this . elt . width = aW ;
3285
3283
this . elt . height = aH ;
3286
3284
}
3287
-
3288
-
3289
3285
this . width = aW ;
3290
3286
this . height = aH ;
3291
-
3292
3287
if ( this . _pInst && this . _pInst . _curElement ) {
3293
3288
// main canvas associated with p5 instance
3294
3289
if ( this . _pInst . _curElement . elt === this . elt ) {
You can’t perform that action at this time.
0 commit comments