We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed6e3f5 commit bf942f6Copy full SHA for bf942f6
1 file changed
src/dom/ScaleManager.js
@@ -401,12 +401,14 @@ var ScaleManager = new Class({
401
else if (this.scaleMode === 5)
402
{
403
// 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);
407
+ // This will constrain using min/max
408
this.displaySize.setSize(this.parentSize.width, this.parentSize.height);
409
+ this.gameSize.setSize(this.displaySize.width, this.displaySize.height);
+
410
+ this.baseSize.setSize(this.displaySize.width * resolution, this.displaySize.height * resolution);
411
412
styleWidth = this.displaySize.width / resolution;
413
styleHeight = this.displaySize.height / resolution;
414
0 commit comments