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: auto-resize not just grid but also headers for Salesforce tabs #1395

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Feb 14, 2024

  • this PR is for v4.x (another similar PR was also opened for v3.x which is what we still use in our Salesforce environment)
  • when switching Tabs in Salesforce, SlickGrid has problem resizing properly, a prior auto-resize patch was put in place some time ago to call resizeGrid() for certain period, but with v3.0 and higher that didn't seem to be enough since the headers were not being resized properly, so let's resize them too by calling grid.updateColumns() in the same auto-resize function

- when switching Tabs in Salesforce, SlickGrid has problem resizing properly, a prior auto-resize patch was put in place some time ago to call `resizeGrid()` for certain period, but with v3.0 and higher that didn't seem to be enough since the headers were not being resized properly, so let's resize them too by calling `grid.updateColumns()` in the same auto-resize function
- I don't care how long the body is but I do care about how long the PR title is (max 72)
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cb15587) 99.8% compared to head (2801648) 99.8%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1395     +/-   ##
========================================
+ Coverage    99.8%   99.8%   +0.1%     
========================================
  Files         199     199             
  Lines       21557   21559      +2     
  Branches     7203    6938    -265     
========================================
+ Hits        21493   21495      +2     
  Misses         64      64             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghiscoding ghiscoding merged commit 6180461 into master Feb 14, 2024
8 checks passed
@ghiscoding ghiscoding deleted the bugfix/autoresize-hidden-tabs-latest branch February 14, 2024 21:28
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.

None yet

2 participants