|
@@ -758,6 +758,9 @@ export class SGraphSelectContainer extends SGraphItem {
|
|
|
for (let v of this.itemList) {
|
|
|
// @ts-ignore
|
|
|
v.resize && v.resize(oldSize, newSize);
|
|
|
+ const p = v.mapToScene(this.pos.x, this.pos.y);
|
|
|
+ const p2 = v.mapFromScene(p.x, p.y);
|
|
|
+ v.moveTo(p2.x - v.boundingRect().x, p2.y - v.boundingRect().y);
|
|
|
}
|
|
|
} // Function resize()
|
|
|
|
|
@@ -891,7 +894,7 @@ export class SGraphSelectContainer extends SGraphItem {
|
|
|
painter.drawRect(0, 0, this.width, this.height);
|
|
|
|
|
|
painter.pen.color = SColor.Black;
|
|
|
- painter.pen.lineDash = [painter.toPx(3), painter.toPx(3)];
|
|
|
+ painter.pen.lineDash = [painter.toPx(4), painter.toPx(4)];
|
|
|
painter.drawRect(0, 0, this.width, this.height);
|
|
|
|
|
|
const r = painter.toPx(this.radius);
|