修复 aspectFit 的 bug
This commit is contained in:
parent
a2d03ea50d
commit
d5657197c6
@ -230,7 +230,7 @@ export default class Painter {
|
|||||||
let rHeight;
|
let rHeight;
|
||||||
let startX = 0;
|
let startX = 0;
|
||||||
let startY = 0;
|
let startY = 0;
|
||||||
if (width > height) {
|
if (view.sHeight > view.sWidth) {
|
||||||
rHeight = Math.round((view.sWidth / width) * height);
|
rHeight = Math.round((view.sWidth / width) * height);
|
||||||
rWidth = view.sWidth;
|
rWidth = view.sWidth;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user