mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +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,
|
||||
bounds: {
|
||||
top: 0,
|
||||
// 设置0的话无法移动到left为0,所以只能设置为-1
|
||||
left: -1,
|
||||
right: this.container.clientWidth - 1,
|
||||
left: 0,
|
||||
right: this.container.clientWidth,
|
||||
bottom: isSortable ? undefined : this.container.clientHeight,
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user