|
@@ -136,7 +136,7 @@ export const helpers = EditorModule.helper({
|
|
|
|
|
|
extendStreamCard(streamCardId: string) {
|
|
extendStreamCard(streamCardId: string) {
|
|
if (!streamCardId) return;
|
|
if (!streamCardId) return;
|
|
-
|
|
|
|
|
|
+
|
|
const compMap = this.store.designData.compMap;
|
|
const compMap = this.store.designData.compMap;
|
|
const card = compMap[streamCardId];
|
|
const card = compMap[streamCardId];
|
|
const childs = card.children.default || [];
|
|
const childs = card.children.default || [];
|
|
@@ -148,8 +148,10 @@ export const helpers = EditorModule.helper({
|
|
maxH = Math.max(maxH, aabb.y + aabb.h);
|
|
maxH = Math.max(maxH, aabb.y + aabb.h);
|
|
}
|
|
}
|
|
maxH = this.helper.pxToDesignSize(maxH);
|
|
maxH = this.helper.pxToDesignSize(maxH);
|
|
|
|
+
|
|
|
|
+ if (childs.length < 1 ) {
|
|
|
|
+ maxH = 200
|
|
|
|
+ }
|
|
card.setH(maxH);
|
|
card.setH(maxH);
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
});
|
|
});
|