|
@@ -816,6 +816,7 @@ export class SGraphSelectContainer extends SGraphItem {
|
|
|
// @ts-ignore
|
|
|
const difY = event.y - this.curPoint.y;
|
|
|
const mp = this.toParentChange(difX, difY);
|
|
|
+ const oldSize = new SSize(this.width, this.height);
|
|
|
switch (this.curIndex) {
|
|
|
case 0:
|
|
|
this.moveTo(this.pos.x + mp.x, this.pos.y + mp.y);
|
|
@@ -853,10 +854,8 @@ export class SGraphSelectContainer extends SGraphItem {
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- this.resize(
|
|
|
- new SSize(this.oldWidth, this.oldHeight),
|
|
|
- new SSize(this.width, this.height)
|
|
|
- );
|
|
|
+ const newSize = new SSize(this.width, this.height);
|
|
|
+ this.resize(oldSize, newSize);
|
|
|
this.calExtreme();
|
|
|
} else {
|
|
|
let flag = true;
|