|
@@ -322,11 +322,21 @@ export const editActions = EditorModule.action({
|
|
|
},
|
|
|
|
|
|
setSameSize(isWidth:boolean) {
|
|
|
+
|
|
|
+ const selectCtrl = this.controls.selectCtrl;
|
|
|
+ const objc = selectCtrl.objContainer as ObjsContainer;
|
|
|
+ if (this.store.selected.length == 1 ) {
|
|
|
+ this.store.currComp.layout.size[0] = 750;
|
|
|
+ objc.updateSize();
|
|
|
+
|
|
|
+ selectCtrl.upgateGizmoStyle();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
const anchorBox = this.helper.findComp(this.store.lastSelected);
|
|
|
if (!anchorBox) return;
|
|
|
|
|
|
- const selectCtrl = this.controls.selectCtrl;
|
|
|
- const objc = selectCtrl.objContainer as ObjsContainer;
|
|
|
+
|
|
|
|
|
|
objc.parent.children.forEach((c)=>{
|
|
|
const child = c as CompObject;
|
|
@@ -336,9 +346,8 @@ export const editActions = EditorModule.action({
|
|
|
})
|
|
|
|
|
|
objc.updateSize();
|
|
|
-
|
|
|
- selectCtrl.upgateGizmoStyle();
|
|
|
|
|
|
+ selectCtrl.upgateGizmoStyle();
|
|
|
},
|
|
|
|
|
|
toogleGroup() {
|