提交 98cc5c9c 编写于 作者: RedPig97's avatar RedPig97

update: 更新

上级 da85cd2b
...@@ -141,14 +141,14 @@ export default class AppScrollContainer extends Vue { ...@@ -141,14 +141,14 @@ export default class AppScrollContainer extends Vue {
const { name, layoutWidth, widthMode, layoutHeight, heightMode, layoutPos } = childModelDetail; const { name, layoutWidth, widthMode, layoutHeight, heightMode, layoutPos } = childModelDetail;
const style = {}; const style = {};
if (layoutWidth) { if (layoutWidth) {
Object.assign(style, { width: Util.getBoxSize('WIDTH', widthMode, layoutWidth).width });
if (layoutPos && (Object.is(layoutPos, 'WEST') || Object.is(layoutPos, 'EAST'))) { if (layoutPos && (Object.is(layoutPos, 'WEST') || Object.is(layoutPos, 'EAST'))) {
Object.assign(style, { width: Util.getBoxSize('WIDTH', widthMode, layoutWidth).width });
minusWidth += ` - ${Util.getBoxSize('WIDTH', widthMode, layoutWidth).width}`; minusWidth += ` - ${Util.getBoxSize('WIDTH', widthMode, layoutWidth).width}`;
} }
} }
if (layoutHeight) { if (layoutHeight) {
Object.assign(style, { height: Util.getBoxSize('HEIGHT', heightMode, layoutHeight).height });
if (layoutPos && (Object.is(layoutPos, 'NORTH') || Object.is(layoutPos, 'SOUTH'))) { if (layoutPos && (Object.is(layoutPos, 'NORTH') || Object.is(layoutPos, 'SOUTH'))) {
Object.assign(style, { height: Util.getBoxSize('HEIGHT', heightMode, layoutHeight).height });
minusHeight += ` - ${Util.getBoxSize('HEIGHT', heightMode, layoutHeight).height}`; minusHeight += ` - ${Util.getBoxSize('HEIGHT', heightMode, layoutHeight).height}`;
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册