Vanessa 2025-07-11 10:32:30 +08:00
parent b4469726a1
commit f99a6d225c
4 changed files with 6 additions and 3 deletions

View file

@ -408,7 +408,7 @@ export const enableProtyle = (protyle: IProtyle) => {
});
const contentRect = protyle.contentElement.getBoundingClientRect();
protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => {
if (item.querySelector(".av__title")) {
if (item.querySelector(".av__scroll")) {
stickyRow(item, contentRect, "all");
}
});

View file

@ -59,7 +59,7 @@ export const resize = (protyle: IProtyle) => {
if (!protyle.disabled) {
const contentRect = protyle.contentElement.getBoundingClientRect();
protyle.wysiwyg.element.querySelectorAll(".av").forEach((item: HTMLElement) => {
if (item.querySelector(".av__title")) {
if (item.querySelector(".av__scroll")) {
stickyRow(item, contentRect, "all");
}
});