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(design): popup style (#3325)

zhangw675933c2c715
diff --git a/packages/design/src/components/popup/RectPopup.tsx b/packages/design/src/components/popup/RectPopup.tsx
index 5c40791d4f..44e10a8418 100644
--- a/packages/design/src/components/popup/RectPopup.tsx
+++ b/packages/design/src/components/popup/RectPopup.tsx
@@ -171,7 +171,7 @@ function RectPopup(props: IRectPopupProps) {
<section
ref={nodeRef}
style={style}
- className={styles.popupAbsolute}
+ className={styles.popupFixed}
onPointerDown={(e) => e.stopPropagation()}
>
<RectPopupContext.Provider value={anchorRect}>
diff --git a/packages/design/src/components/popup/index.module.less b/packages/design/src/components/popup/index.module.less
index 96fdf82479..f5fba0f94d 100644
--- a/packages/design/src/components/popup/index.module.less
+++ b/packages/design/src/components/popup/index.module.less
@@ -1,5 +1,5 @@
-.popup-absolute {
- position: absolute;
+.popup-fixed {
+ position: fixed;
z-index: 1000;
top: -9999px;
left: -9999px;