画布大小取整
This commit is contained in:
parent
202e946f0f
commit
a2ee0bef49
@ -349,8 +349,8 @@ $(function() {
|
|||||||
y : 180 - pos.top
|
y : 180 - pos.top
|
||||||
});
|
});
|
||||||
Designer.setPageStyle({
|
Designer.setPageStyle({
|
||||||
width: minPageWidth,
|
width: Math.trunc(minPageWidth),
|
||||||
height: contentHeight + 360
|
height: Math.trunc(contentHeight + 360)
|
||||||
});
|
});
|
||||||
} else if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
|
} else if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
|
||||||
// 右移或左移 距左部60 默认padding 60
|
// 右移或左移 距左部60 默认padding 60
|
||||||
@ -364,8 +364,8 @@ $(function() {
|
|||||||
y : 180 - pos.top
|
y : 180 - pos.top
|
||||||
});
|
});
|
||||||
Designer.setPageStyle({
|
Designer.setPageStyle({
|
||||||
width: contentWidth + 180*2,
|
width: Math.trunc(contentWidth + 180*2),
|
||||||
height: contentHeight + 180*2
|
height: Math.trunc(contentHeight + 180*2)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Model.updateMulti(movingShapes);
|
Model.updateMulti(movingShapes);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user