Commit a47c76b3 authored by limingzhe's avatar limingzhe

fix: debug

parent 1f46e160
...@@ -253,7 +253,7 @@ cc.Class({ ...@@ -253,7 +253,7 @@ cc.Class({
loadEnd() { loadEnd() {
console.log(' in loadEnd'); console.log(' in loadEnd');
this.data.isDebug = true; // this.data.isDebug = true;
this.initData(); this.initData();
this.initView(); this.initView();
......
...@@ -1832,13 +1832,17 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -1832,13 +1832,17 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
} else { } else {
scale = this.bg.scaleX; scale = this.bg.scaleX;
} }
}
pic.setScaleXY(scale);
} else {
const w = item.width * item.scaleX;
const h = item.height * item.scaleY;
pic.setScaleXY(getMinScale(pic, w, h));
}
const w = item.width * item.scaleX;
const h = item.height * item.scaleY;
pic.setScaleXY(getMinScale(pic, w, h));
// pic.setScaleXY(scale);
}); });
} }
......
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