mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🚨
This commit is contained in:
parent
1f391d7f50
commit
b542a80f56
8 changed files with 13 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue