画布大小取整

This commit is contained in:
mrs_12345@163.com 2022-07-12 18:54:22 +08:00
parent 202e946f0f
commit a2ee0bef49

View File

@ -349,8 +349,8 @@ $(function() {
y : 180 - pos.top
});
Designer.setPageStyle({
width: minPageWidth,
height: contentHeight + 360
width: Math.trunc(minPageWidth),
height: Math.trunc(contentHeight + 360)
});
} else if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
// 右移或左移 距左部60 默认padding 60
@ -364,8 +364,8 @@ $(function() {
y : 180 - pos.top
});
Designer.setPageStyle({
width: contentWidth + 180*2,
height: contentHeight + 180*2
width: Math.trunc(contentWidth + 180*2),
height: Math.trunc(contentHeight + 180*2)
});
}
Model.updateMulti(movingShapes);