Commit d0d2754a authored by WUYING\505623963_1041864935's avatar WUYING\505623963_1041864935
parents f230da6e 4fa3802f
......@@ -261,9 +261,9 @@ let pg = {
if (w && h && custom) {
let scaleX = w / nw;
let scaleY = h / nh;
// let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scaleX;
node.height = nh * scaleY;
let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * (custom ? scale : scaleX);
node.height = nh * (custom ? scale : scaleY);
}
node.active = true;
resolve({ w: nw, h: nh });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment