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(igxGrid): When autosizing something with template that may need t… #13950

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

MayaKirova
Copy link
Contributor

@MayaKirova MayaKirova commented Feb 23, 2024

…ime post injection in DOM to fully initialize, skip initial renders when the cell is still with no content.

For IgniteUI/igniteui-webcomponents#1046

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

…ime post injection in DOM to fully initialize, skip initial renders when the cell is still with no content.
@MayaKirova MayaKirova added ❌ status: awaiting-test PRs awaiting manual verification grid labels Feb 23, 2024
@IMinchev64 IMinchev64 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 Mar 15, 2024
emptyCellWithPaddingOnly = parseFloat(cellStyle.paddingLeft) + parseFloat(cellStyle.paddingRight);
}

if (max === 0 || max <= emptyCellWithPaddingOnly) {
Copy link
Member

Choose a reason for hiding this comment

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

Um, is it me or does this have the potential for looping hard and also possibly affecting the Angular product as well? Assuming there is a template that literally renders nothing on purpose for whatever reason (for example conditionally shown button), would this not get stuck trying to measure that empty column until something is rendered?

Copy link
Member

@damyanpetev damyanpetev left a comment

Choose a reason for hiding this comment

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

Outside of my previous comment about the possibility of the column remaining in content-fit mode if the template is intentionally empty which is pretty unlikely, I think we can accept that fix initially.
Still think we can improve, since it's a targeted scenario and we can only re-test the column one more time after the DOM is ready, though that might require some more digging to figure out the exact order of events

@damyanpetev damyanpetev merged commit 3f88568 into blazor-angular-elements Mar 20, 2024
1 check failed
@damyanpetev damyanpetev deleted the mkirova/fix-1046 branch March 20, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid ✅ status: verified Applies to PRs that have passed manual verification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants