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: some bugs about autofill and scroll (#1222)
YuHong2e17edd1af2d
diff --git a/packages/sheets-ui/src/controllers/selection.controller.ts b/packages/sheets-ui/src/controllers/selection.controller.tsindex ae9d1aebc2..2f8863e9f1 100644--- a/packages/sheets-ui/src/controllers/selection.controller.ts+++ b/packages/sheets-ui/src/controllers/selection.controller.ts@@ -263,8 +263,6 @@ export class SelectionController extends Disposable {this._selectionRenderService.selectionMoveEnd$.subscribe((params) => {this._move(params, SelectionMoveType.MOVE_END);-- this._scrollController.scrollToVisible(false);});}diff --git a/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx b/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsxindex 6a90606273..e10ac27a2c 100644--- a/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx+++ b/packages/sheets-ui/src/views/operate-container/AutoFillPopupMenu.tsx@@ -19,7 +19,7 @@ import { ICommandService, IUniverInstanceService, LocaleService, Rectangle, toDiimport { Dropdown } from '@univerjs/design';import { IRenderManagerService } from '@univerjs/engine-render';import { Autofill, CheckMarkSingle, MoreDownSingle } from '@univerjs/icons';-import { MoveRangeMutation, SetRangeValuesMutation, SetWorksheetActiveOperation } from '@univerjs/sheets';+import { MoveRangeMutation, SetWorksheetActiveOperation } from '@univerjs/sheets';import { useDependency } from '@wendellhu/redi/react-bindings';import clsx from 'clsx';import React, { useCallback, useEffect, useState } from 'react';@@ -89,7 +89,6 @@ export const AutoFillPopupMenu: React.FC<{}> = () => {SetCellEditVisibleOperation.id,AutoClearContentCommand.id,SetZoomRatioOperation.id,- SetRangeValuesMutation.id,SetWorksheetActiveOperation.id,MoveRangeMutation.id,];