工具栏调节画布大小调整

This commit is contained in:
yangl 2022-08-23 13:54:33 +08:00
parent e30d117925
commit f99d4702eb

View File

@ -327,9 +327,9 @@ $(function() {
movingShapes = selected.concat(outlinkers);
}
if(movingShapes.length > 0 && contentWidth <= minPageWidth - 180*2) {
// 右移或左移 距左部120 默认padding 60
// 右移或左移 距左部150 默认padding 60
Designer.op.moveShape(movingShapes, {
x : 180 - pos.left,
x : 210 - pos.left,
y : 0
});
// 下移或上移 距顶部120 默认padding 60
@ -343,9 +343,9 @@ $(function() {
});
}
if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
// 右移或左移 距左部120 默认padding 60
// 右移或左移 距左部150 默认padding 60
Designer.op.moveShape(movingShapes, {
x : 180 - pos.left,
x : 210 - pos.left,
y : 0
});
// 下移或上移 距顶部120 默认padding 60
@ -354,7 +354,7 @@ $(function() {
y : 180 - pos.top
});
Designer.setPageStyle({
width: Math.trunc(contentWidth + 180*2),
width: Math.trunc(contentWidth + 210*2 ),
height: Math.trunc(contentHeight + 180*2)
});
}