Skip to content

Commit

Permalink
fix(sheets-ui): after unhiding row or col icon doesn't disappear (#2075)
Browse files Browse the repository at this point in the history
* fix(sheets-ui): after unhiding row or col icon doesn't disappear

* chore: update

---------

Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
  • Loading branch information
kovsu and wzhudev committed Apr 26, 2024
1 parent 6e03118 commit f07c2d9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ export class HeaderUnhideRenderController extends RxDisposable {
hovered: false,
hasPrevious,
hasNext,
left: position.startX - (hasPrevious ? UNHIDE_ICON_SIZE : 0),

top: 20 - UNHIDE_ICON_SIZE,
left: position.startX - (hasPrevious ? UNHIDE_ICON_SIZE : 0),
},
() => this._commandService.executeCommand<ISetSpecificColsVisibleCommandParams>(
SetSpecificColsVisibleCommand.id,
Expand All @@ -177,6 +176,8 @@ export class HeaderUnhideRenderController extends RxDisposable {

scene.addObjects(colShapes, SHEET_COMPONENT_UNHIDE_LAYER_INDEX);
scene.addObjects(rowShapes, SHEET_COMPONENT_UNHIDE_LAYER_INDEX);
// 3. clear the previous shapes and update the shapes
this._clearShapes();
this._shapes = { cols: colShapes, rows: rowShapes };
}

Expand Down

0 comments on commit f07c2d9

Please sign in to comment.