Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(common): add optional scrollIntoView to GridService addItems #1043

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

ghiscoding
Copy link
Owner

  • we should be able to disable the scroll into view if we don't want it
  • also fixes an issue when inserting multiple items in a Tree Data grid, the previous default was to use the insert position to then scroll to top/bottom of the grid, however in a Tree Data grid it does not necessarily insert at the top/bottom it would rather insert the item in a defined group which could end up being in the middle of the grid so we shouldn't automatically
  • fixes an issue opened in Angular-Slickgrid, Tree scrolls and flickers on frequent update on tree data Angular-Slickgrid#1201

- we should be able to disable the scroll into view if we don't want it
- also fixes an issue when inserting multiple items in a Tree Data grid, the previous default was to use the insert position to then scroll to top/bottom of the grid, however in a Tree Data grid it does not necessarily insert at the top/bottom it would rather insert the item in a defined group which could end up being in the middle of the grid so we shouldn't automatically
- fixes an issue opened in Angular-Slickgrid, ghiscoding/Angular-Slickgrid#1201
@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #1043 (7a8de9b) into master (5b35f1b) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master     #1043   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          244       244           
  Lines        16561     16565    +4     
  Branches      5931      5935    +4     
=========================================
+ Hits         16561     16565    +4     
Impacted Files Coverage Δ
packages/common/src/services/grid.service.ts 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@ghiscoding ghiscoding merged commit a6d194a into master Jul 19, 2023
@ghiscoding ghiscoding deleted the feat/insert-item-without-grid-position branch July 19, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant