Vanessa 2022-10-14 13:53:42 +08:00
parent e4af249f84
commit 74069aa50f
2 changed files with 2 additions and 2 deletions

View file

@ -403,7 +403,7 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any) => {
export const resizeDrag = () => {
const dragElement = document.getElementById("drag");
const right = dragElement.getBoundingClientRect().left - document.querySelector("#windowControls").clientWidth;
const right = dragElement.getBoundingClientRect().left - document.querySelector("#windowControls").clientWidth - document.querySelector("#barSearch").clientWidth * 4;
if (right < dragElement.clientWidth) {
dragElement.style.paddingRight = right + "px";
} else {