forked from opentiny/tiny-vue
fix(Dialog-box): Fix the issue of blocked headers in dialogBox components (#620)
This commit is contained in:
parent
b0aec35557
commit
0022b6792d
|
@ -295,8 +295,8 @@ export const handleDrag =
|
|||
|
||||
let offsetWidth = modalBoxElem.offsetWidth
|
||||
let offsetHeight = modalBoxElem.offsetHeight
|
||||
let maxX = visibleWidth - offsetWidth
|
||||
let maxY = visibleHeight - offsetHeight
|
||||
let maxX = Math.max(visibleWidth - offsetWidth, 0)
|
||||
let maxY = Math.max(visibleHeight - offsetHeight, 0)
|
||||
let left = event.clientX - disX
|
||||
let top = event.clientY - disY
|
||||
|
||||
|
|
Loading…
Reference in New Issue