mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
This commit is contained in:
parent
ff2c6f845d
commit
f20548fce9
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellElement: Eleme
|
|||
if (contentElement) {
|
||||
const contentRect = contentElement.getBoundingClientRect();
|
||||
if (cellRect.bottom > contentRect.bottom) {
|
||||
contentElement.scrollTop = contentElement.scrollTop + (cellRect.top - contentRect.top - 33);
|
||||
contentElement.scrollTop = contentElement.scrollTop + (cellRect.bottom - contentRect.bottom);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue