工具栏调节画布大小调整
This commit is contained in:
parent
e30d117925
commit
f99d4702eb
@ -327,9 +327,9 @@ $(function() {
|
|||||||
movingShapes = selected.concat(outlinkers);
|
movingShapes = selected.concat(outlinkers);
|
||||||
}
|
}
|
||||||
if(movingShapes.length > 0 && contentWidth <= minPageWidth - 180*2) {
|
if(movingShapes.length > 0 && contentWidth <= minPageWidth - 180*2) {
|
||||||
// 右移或左移 距左部120 默认padding 60
|
// 右移或左移 距左部150 默认padding 60
|
||||||
Designer.op.moveShape(movingShapes, {
|
Designer.op.moveShape(movingShapes, {
|
||||||
x : 180 - pos.left,
|
x : 210 - pos.left,
|
||||||
y : 0
|
y : 0
|
||||||
});
|
});
|
||||||
// 下移或上移 距顶部120 默认padding 60
|
// 下移或上移 距顶部120 默认padding 60
|
||||||
@ -343,9 +343,9 @@ $(function() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
|
if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
|
||||||
// 右移或左移 距左部120 默认padding 60
|
// 右移或左移 距左部150 默认padding 60
|
||||||
Designer.op.moveShape(movingShapes, {
|
Designer.op.moveShape(movingShapes, {
|
||||||
x : 180 - pos.left,
|
x : 210 - pos.left,
|
||||||
y : 0
|
y : 0
|
||||||
});
|
});
|
||||||
// 下移或上移 距顶部120 默认padding 60
|
// 下移或上移 距顶部120 默认padding 60
|
||||||
@ -354,7 +354,7 @@ $(function() {
|
|||||||
y : 180 - pos.top
|
y : 180 - pos.top
|
||||||
});
|
});
|
||||||
Designer.setPageStyle({
|
Designer.setPageStyle({
|
||||||
width: Math.trunc(contentWidth + 180*2),
|
width: Math.trunc(contentWidth + 210*2 ),
|
||||||
height: Math.trunc(contentHeight + 180*2)
|
height: Math.trunc(contentHeight + 180*2)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user