工具栏调整画布大小bug修复
This commit is contained in:
parent
c67c3a77dd
commit
fdbc0b4887
@ -343,6 +343,11 @@ $(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
|
||||||
|
Designer.op.moveShape(movingShapes, {
|
||||||
|
x : 180 - pos.left,
|
||||||
|
y : 0
|
||||||
|
});
|
||||||
// 下移或上移 距顶部120 默认padding 60
|
// 下移或上移 距顶部120 默认padding 60
|
||||||
Designer.op.moveShape(movingShapes, {
|
Designer.op.moveShape(movingShapes, {
|
||||||
x : 0,
|
x : 0,
|
||||||
@ -352,8 +357,9 @@ $(function() {
|
|||||||
width: Math.trunc(minPageWidth),
|
width: Math.trunc(minPageWidth),
|
||||||
height: Math.trunc(contentHeight + 360)
|
height: Math.trunc(contentHeight + 360)
|
||||||
});
|
});
|
||||||
} else if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
|
}
|
||||||
// 右移或左移 距左部60 默认padding 60
|
if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) {
|
||||||
|
// 右移或左移 距左部120 默认padding 60
|
||||||
Designer.op.moveShape(movingShapes, {
|
Designer.op.moveShape(movingShapes, {
|
||||||
x : 180 - pos.left,
|
x : 180 - pos.left,
|
||||||
y : 0
|
y : 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user