mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 08:54:07 +01:00
🚨
This commit is contained in:
parent
bbb1abb7c6
commit
af35b8ba57
17 changed files with 37 additions and 43 deletions
|
|
@ -355,7 +355,7 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellRect: DOMRect,
|
|||
avScrollElement.scrollLeft = avScrollElement.scrollLeft + cellRect.right - avScrollRect.right;
|
||||
}
|
||||
}
|
||||
const avHeaderRect = blockElement.querySelector(".av__header").getBoundingClientRect()
|
||||
const avHeaderRect = blockElement.querySelector(".av__header").getBoundingClientRect();
|
||||
if (avHeaderRect.bottom > cellRect.top) {
|
||||
const contentElement = hasClosestByClassName(blockElement, "protyle-content", true);
|
||||
if (contentElement) {
|
||||
|
|
@ -370,7 +370,7 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellRect: DOMRect,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type?: TAVCol) => {
|
||||
if (!type) {
|
||||
|
|
@ -385,7 +385,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
|
|||
const blockElement = hasClosestBlock(cellElements[0]);
|
||||
let cellRect = cellElements[0].getBoundingClientRect();
|
||||
if (blockElement) {
|
||||
cellScrollIntoView(blockElement, cellRect)
|
||||
cellScrollIntoView(blockElement, cellRect);
|
||||
}
|
||||
cellRect = cellElements[0].getBoundingClientRect();
|
||||
let html = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue