Vanessa 2025-04-13 12:11:18 +08:00
parent 298a15943e
commit 9b46324d26
3 changed files with 12 additions and 5 deletions

View file

@ -12,6 +12,8 @@ import {showMessage} from "../../../dialog/message";
import {addClearButton} from "../../../util/addClearButton";
import {escapeAriaLabel, escapeAttr, escapeHtml} from "../../../util/escape";
import {electronUndo} from "../../undo";
import {isInAndroid, isInHarmony, isInIOS} from "../../util/compatibility";
import {isMobile} from "../../../util/functions";
export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, viewID?: string, renderAll = true) => {
let avElements: Element[] = [];
@ -29,6 +31,9 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, v
if (e.getAttribute("data-render") === "true") {
return;
}
if (isMobile() || isInIOS() || isInAndroid() || isInHarmony()) {
e.classList.add("av--touch");
}
const alignSelf = e.style.alignSelf;
if (e.firstElementChild.innerHTML === "") {
e.style.alignSelf = "";