mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-11 13:29:00 +08:00
fix(stage): 拖动出现left -1
This commit is contained in:
parent
d8a2a1f805
commit
e3b2594c57
@ -134,9 +134,8 @@ export default class MoveableOptionsManager extends EventEmitter {
|
|||||||
elementGuidelines: this.elementGuidelines,
|
elementGuidelines: this.elementGuidelines,
|
||||||
bounds: {
|
bounds: {
|
||||||
top: 0,
|
top: 0,
|
||||||
// 设置0的话无法移动到left为0,所以只能设置为-1
|
left: 0,
|
||||||
left: -1,
|
right: this.container.clientWidth,
|
||||||
right: this.container.clientWidth - 1,
|
|
||||||
bottom: isSortable ? undefined : this.container.clientHeight,
|
bottom: isSortable ? undefined : this.container.clientHeight,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user