Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(docs-ui): wrong font size in menu show (#3938)
Ran Luoe9e78203aa85
diff --git a/packages/docs-ui/src/controllers/menu/menu.ts b/packages/docs-ui/src/controllers/menu/menu.tsindex 39848b9604..e9b399051c 100644--- a/packages/docs-ui/src/controllers/menu/menu.ts+++ b/packages/docs-ui/src/controllers/menu/menu.ts@@ -950,7 +950,7 @@ function getFontStyleAtCursor(accessor: IAccessor) {for (let i = textRuns.length - 1; i >= 0; i--) {const curTextRun = textRuns[i];- if (curTextRun.st <= startOffset && startOffset <= curTextRun.ed) {+ if (curTextRun.st < startOffset && startOffset <= curTextRun.ed) {textRun = curTextRun;break;}