mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
755c436985
commit
d4c3fd0db3
1 changed files with 1 additions and 1 deletions
|
|
@ -392,7 +392,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IMod
|
||||||
if (newRange) {
|
if (newRange) {
|
||||||
editor.editor.protyle.toolbar.range = newRange;
|
editor.editor.protyle.toolbar.range = newRange;
|
||||||
}
|
}
|
||||||
scrollCenter(editor.editor.protyle);
|
scrollCenter(editor.editor.protyle, editor.editor.protyle.disabled ? nodeElement : null);
|
||||||
editor.editor.protyle.observerLoad = new ResizeObserver(() => {
|
editor.editor.protyle.observerLoad = new ResizeObserver(() => {
|
||||||
if (document.contains(nodeElement)) {
|
if (document.contains(nodeElement)) {
|
||||||
scrollCenter(editor.editor.protyle);
|
scrollCenter(editor.editor.protyle);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue