This commit is contained in:
Vanessa 2022-11-19 10:49:43 +08:00
parent 1f391d7f50
commit b542a80f56
8 changed files with 13 additions and 14 deletions

View file

@ -428,7 +428,7 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any) => {
export const resizeDrag = () => {
const dragElement = document.getElementById("drag");
const width = dragElement.clientWidth;
const dragRect = dragElement.getBoundingClientRect()
const dragRect = dragElement.getBoundingClientRect();
const left = dragRect.left;
const right = window.innerWidth - dragRect.right;
if (left > right && left - right < width) {