This commit is contained in:
Vanessa 2022-06-14 19:43:02 +08:00
parent 44e43d620a
commit efaa544973
3 changed files with 14 additions and 7 deletions

View file

@ -394,6 +394,16 @@ 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
if (right < dragElement.clientWidth) {
dragElement.style.paddingRight = right + "px";
} else {
dragElement.style.paddingRight = "";
}
}
export const resizeTabs = () => {
const models = getAllModels();
models.editor.forEach((item) => {