Skip to content

Commit bf942f6

Browse files
committed
Fixed RESIZE update handling
1 parent ed6e3f5 commit bf942f6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/dom/ScaleManager.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,14 @@ var ScaleManager = new Class({
401401
else if (this.scaleMode === 5)
402402
{
403403
// Resize to match parent
404-
this.gameSize.setSize(this.parentSize.width, this.parentSize.height);
405-
406-
this.baseSize.setSize(this.parentSize.width * resolution, this.parentSize.height * resolution);
407404

405+
// This will constrain using min/max
408406
this.displaySize.setSize(this.parentSize.width, this.parentSize.height);
409407

408+
this.gameSize.setSize(this.displaySize.width, this.displaySize.height);
409+
410+
this.baseSize.setSize(this.displaySize.width * resolution, this.displaySize.height * resolution);
411+
410412
styleWidth = this.displaySize.width / resolution;
411413
styleHeight = this.displaySize.height / resolution;
412414

0 commit comments

Comments
 (0)