We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b088b commit b61edd0Copy full SHA for b61edd0
1 file changed
src/scale/ScaleManager.js
@@ -768,8 +768,8 @@ var ScaleManager = new Class({
768
}
769
770
// The size used for the canvas style, factoring in the scale mode and parent and zoom value
771
- // We just use the w/h here as this is what sets the aspect ratio (which doesn't then change)
772
- this.displaySize.setSize(width, height);
+ // Update the aspect ratio
+ this.displaySize.setAspectRatio(width / height);
773
774
this.canvas.width = this.baseSize.width;
775
this.canvas.height = this.baseSize.height;
0 commit comments