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

Fixes column width not updating when grouping is cleared #10135

Merged
merged 4 commits into from
Sep 17, 2021

Conversation

3phase
Copy link
Contributor

@3phase 3phase commented Sep 15, 2021

Closes #10081

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@VMihalkov VMihalkov added 💥 status: in-test PRs currently being tested ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification 💥 status: in-test PRs currently being tested labels Sep 16, 2021
@@ -672,6 +672,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
*/
public clearGrouping(name?: string | Array<string>): void {
this._gridAPI.clear_groupby(name);
this.calculateGridSizes();
this.notifyChanges(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notifyChanges can be removed since its main purpose is to force reflow calculation on the next detection cycle. But with this change the calculation is already done explicitly so there's no point to calculate again on the next detection cycle.

@ChronosSF ChronosSF merged commit 2ecdca6 into master Sep 17, 2021
@ChronosSF ChronosSF deleted the pbozhinov/fix-10081 branch September 17, 2021 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid: groupby version: 13.0.x ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IgxGrid: the grid is being shrunk when the grouping for particular column has been cleared
6 participants