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

fix(resizer): remove delay to call resize by content to avoid flickering #341

Merged
merged 1 commit into from
May 17, 2021

Conversation

ghiscoding
Copy link
Owner

No description provided.

@codecov
Copy link

codecov bot commented May 17, 2021

Codecov Report

Merging #341 (961efe6) into master (e6e34ee) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #341   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          212       212           
  Lines        13130     13133    +3     
  Branches      4305      4307    +2     
=========================================
+ Hits         13130     13133    +3     
Impacted Files Coverage Δ
packages/common/src/services/gridState.service.ts 100.00% <100.00%> (ø)
...bundle/src/components/slick-vanilla-grid-bundle.ts 100.00% <100.00%> (ø)
...ges/vanilla-bundle/src/services/resizer.service.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6e34ee...961efe6. Read the comment docs.

@AnnetteZhang AnnetteZhang merged commit 58c4278 into master May 17, 2021
@AnnetteZhang AnnetteZhang deleted the bugfix/resize-by-content-flickering branch May 17, 2021 17:07
ghiscoding-SE pushed a commit that referenced this pull request May 17, 2021
- loading of Columns Grid Presets should only be done once (before resizing) and loading Filters Grid Presets could be done one or more times, so to fix this I have separated `loadPresetsWhenDatasetInitialized` into 2 new methods and made sure to call the columns grid preset only once.
- this issue was identified while porting the previous PR #341 into Angular-Slickgrid
ghiscoding-SE pushed a commit that referenced this pull request May 21, 2021
- resizer service init must be done only after SlickGrid is initialized, else we end up binding our resize to a grid dom element that doesn't yet exist in the DOM
- this regression bug wasn't caught earlier because there's no Cypress E2E to test that since it's too hard to test, basically it was caught manually since I found out the auto-resize stopped working (it failed silently) and I was wondering why that suddenly happened
ghiscoding added a commit that referenced this pull request May 21, 2021
fix(resizer): fix a regression bug caused by previous PR #341
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.

2 participants