Commit 4fa3802f authored by yu's avatar yu

1

parent 119b0379
...@@ -261,9 +261,9 @@ let pg = { ...@@ -261,9 +261,9 @@ let pg = {
if (w && h && custom) { if (w && h && custom) {
let scaleX = w / nw; let scaleX = w / nw;
let scaleY = h / nh; let scaleY = h / nh;
// let scale = scaleX <= scaleY ? scaleX : scaleY; let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scaleX; node.width = nw * (custom ? scale : scaleX);
node.height = nh * scaleY; node.height = nh * (custom ? scale : scaleY);
} }
node.active = true; node.active = true;
resolve({ w: nw, h: nh }); 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