mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-24 03:15:11 +08:00
fix(editor): 拖动组件到最右边会多出1px
This commit is contained in:
parent
9747e0f516
commit
bf95925878
@ -558,7 +558,7 @@ export default class StageDragResize extends EventEmitter {
|
||||
top: 0,
|
||||
// 设置0的话无法移动到left为0,所以只能设置为-1
|
||||
left: -1,
|
||||
right: this.container.clientWidth,
|
||||
right: this.container.clientWidth - 1,
|
||||
bottom: this.container.clientHeight,
|
||||
...(moveableOptions.bounds || {}),
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user