From fc254b9e93125b7d840f44ce4c740967ce4e32e3 Mon Sep 17 00:00:00 2001 From: wpxp123456 <2677556700@qq.com> Date: Tue, 9 Dec 2025 15:38:21 +0800 Subject: [PATCH] fix: fix drop down list max width (#6268) --- .../sheets-ui/src/views/dropdown/list-dropdown/index.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx b/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx index 02dea77df3..68e613474b 100644 --- a/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx +++ b/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx @@ -37,7 +37,7 @@ import { WorkbookEditablePermission, WorksheetEditPermission, } from '@univerjs/sheets'; -import { RectPopup, useDependency } from '@univerjs/ui'; +import { useDependency } from '@univerjs/ui'; import { useEffect, useMemo, useState } from 'react'; import { IEditorBridgeService } from '../../../services/editor-bridge.service'; @@ -191,7 +191,7 @@ export interface IListDropdownProps { } export function ListDropDown(props: { popup: IPopup }) { - const { popup: { extraProps } } = props; + const { popup: { extraProps, anchorRect } } = props; const { location, hideFn, onChange, onEdit, options, defaultValue, multiple, showEdit } = extraProps!; const { worksheet } = location; const [editingText, setEditingText] = useState(''); @@ -200,8 +200,7 @@ export function ListDropDown(props: { popup: IPopup { const dispose = commandService.onCommandExecuted((command) => {