修复 aspectFit 的 bug

This commit is contained in:
CPPAlien 2018-08-19 13:46:44 +08:00
parent a2d03ea50d
commit d5657197c6

View File

@ -230,7 +230,7 @@ export default class Painter {
let rHeight;
let startX = 0;
let startY = 0;
if (width > height) {
if (view.sHeight > view.sWidth) {
rHeight = Math.round((view.sWidth / width) * height);
rWidth = view.sWidth;
} else {