PAL 设计器画布大小自适应bug修改
This commit is contained in:
parent
f19ea3233c
commit
c0eac15c0b
@ -2368,13 +2368,15 @@ Designer.events.addEventListener("created", function(shape) {
|
||||
let pageSize = Model.define.page
|
||||
if (shapePosition.x + shapePosition.w > pageSize.width - pageSize.padding) {
|
||||
Designer.setPageStyle({
|
||||
width: shapePosition.x + shapePosition.w + pageSize.padding + 10,
|
||||
width: shapePosition.x + shapePosition.w + pageSize.padding + 30,
|
||||
});
|
||||
$("#page_size_w").spinner('value',shapePosition.x + shapePosition.w + pageSize.padding + 30);
|
||||
}
|
||||
if (shapePosition.y + shapePosition.h > pageSize.height - pageSize.padding) {
|
||||
Designer.setPageStyle({
|
||||
height: shapePosition.y + shapePosition.h + pageSize.padding + 10,
|
||||
height: shapePosition.y + shapePosition.h + pageSize.padding + 30,
|
||||
});
|
||||
$("#page_size_h").spinner('value',shapePosition.x + shapePosition.w + pageSize.padding + 30)
|
||||
}
|
||||
|
||||
if (Designer.status == "demo" && !demoCreatedTiped) {
|
||||
|
||||
@ -1171,13 +1171,15 @@ var Designer = {
|
||||
var pageSize = Model.define.page;
|
||||
if (shapePosition.x + shapePosition.w > pageSize.width - pageSize.padding){
|
||||
Designer.setPageStyle({
|
||||
width: shapePosition.x + shapePosition.w + pageSize.padding + 10
|
||||
width: shapePosition.x + shapePosition.w + pageSize.padding + 30
|
||||
});
|
||||
$("#page_size_w").spinner('value',shapePosition.x + shapePosition.w + pageSize.padding + 30);
|
||||
}
|
||||
if (shapePosition.y + shapePosition.h > pageSize.height - pageSize.padding){
|
||||
Designer.setPageStyle({
|
||||
height: shapePosition.y + shapePosition.h + pageSize.padding + 10
|
||||
height: shapePosition.y + shapePosition.h + pageSize.padding + 30
|
||||
});
|
||||
$("#page_size_h").spinner('value',shapePosition.x + shapePosition.w + pageSize.padding + 30)
|
||||
}
|
||||
}
|
||||
if (isAutoSave == "0") {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user