mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 22:09:06 +08:00
This commit is contained in:
parent
ff2c6f845d
commit
f20548fce9
@ -350,7 +350,7 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellElement: Eleme
|
|||||||
if (contentElement) {
|
if (contentElement) {
|
||||||
const contentRect = contentElement.getBoundingClientRect();
|
const contentRect = contentElement.getBoundingClientRect();
|
||||||
if (cellRect.bottom > contentRect.bottom) {
|
if (cellRect.bottom > contentRect.bottom) {
|
||||||
contentElement.scrollTop = contentElement.scrollTop + (cellRect.top - contentRect.top - 33);
|
contentElement.scrollTop = contentElement.scrollTop + (cellRect.bottom - contentRect.bottom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user