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

update: 更新

上级 da85cd2b
......@@ -124,7 +124,7 @@ export default class AppScrollContainer extends Vue {
*
* @memberof AppScrollContainer
*/
public initScrollContainer() {
public initScrollContainer() {
let minusHeight = '';
let minusWidth: string = '';
this.containerModel = {};
......@@ -141,14 +141,14 @@ export default class AppScrollContainer extends Vue {
const { name, layoutWidth, widthMode, layoutHeight, heightMode, layoutPos } = childModelDetail;
const style = {};
if (layoutWidth) {
Object.assign(style, { width: Util.getBoxSize('WIDTH', widthMode, layoutWidth).width });
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}`;
}
}
if (layoutHeight) {
Object.assign(style, { height: Util.getBoxSize('HEIGHT', heightMode, layoutHeight).height });
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}`;
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册