画布大小取整
This commit is contained in:
parent
202e946f0f
commit
a2ee0bef49
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user