mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 00:50:56 +08:00
This commit is contained in:
parent
727d8509bb
commit
6cb56b8767
@ -5,7 +5,7 @@ import {openEditorTab} from "../../../menus/util";
|
||||
import {copySubMenu} from "../../../menus/commonMenuItem";
|
||||
import {getTypeByCellElement, popTextCell} from "./cell";
|
||||
import {getColIconByType, showColMenu} from "./col";
|
||||
import {insertAttrViewBlockAnimation, updateHeader} from "./row";
|
||||
import {insertAttrViewBlockAnimation, stickyRow, updateHeader} from "./row";
|
||||
import {emitOpenMenu} from "../../../plugin/EventBus";
|
||||
import {addCol} from "./col";
|
||||
import {openMenuPanel} from "./openMenuPanel";
|
||||
@ -316,6 +316,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
||||
rowElements.forEach(item => {
|
||||
item.remove();
|
||||
});
|
||||
stickyRow(blockElement, protyle.contentElement.getBoundingClientRect(), "all");
|
||||
updateHeader(blockElement.querySelector(".av__row"));
|
||||
}
|
||||
});
|
||||
|
@ -112,7 +112,7 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellElement: Eleme
|
||||
// 属性面板
|
||||
return;
|
||||
}
|
||||
const avHeaderRect = blockElement.querySelector(".av__header").getBoundingClientRect();
|
||||
const avHeaderRect = blockElement.querySelector(".av__row--header").getBoundingClientRect();
|
||||
if (avHeaderRect.bottom > cellRect.top) {
|
||||
const contentElement = hasClosestByClassName(blockElement, "protyle-content", true);
|
||||
if (contentElement) {
|
||||
|
Loading…
Reference in New Issue
Block a user