Skip to content

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.

fix(docs-ui): menu font-size calc error on heading case (#4910)

ZhangWei9e0d70093f8c
diff --git a/packages/docs-ui/src/controllers/menu/menu.ts b/packages/docs-ui/src/controllers/menu/menu.ts
index 3591a99a4e..89128af2ed 100644
--- a/packages/docs-ui/src/controllers/menu/menu.ts
+++ b/packages/docs-ui/src/controllers/menu/menu.ts
@@ -1052,8 +1052,8 @@ function getFontStyleAtCursor(accessor: IAccessor) {
return {
ts: {
- ...curTextStyle,
...namedStyle,
+ ...curTextStyle,
...cacheStyle,
},
};