-
Notifications
You must be signed in to change notification settings - Fork 161
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): Grid should render all columns when grid width is set to null. #5405
Conversation
if (this.width === null && this.columnList && this.columnList.length > 0) { | ||
let width = this.columnList.reduce((sum, item) => sum + parseInt((item.width || item.defaultWidth), 10), 0); | ||
if (this.hasVerticalSroll()) { | ||
width += this.scrollWidth; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should add also the features extra columns width and etc.
Otherwise for example if Row Selection is enabled it will create scrollbar because the column containing checkboxes is not taken into account.
…at change the total grid width (row selectors, expansion indicators etc.).
…nto account when calculating virtualization width as it should be equal to the sum of column widths.
…n width is set to null.
Check the new issues in #5397 |
…dings so that grid will expact based on content. In case width is null and column width in % then set width to min width explicitly.
…/igniteui-angular into mkirova/fix-5288-master
@MayaKirova, the only issue still remaining is that the row drag column remains as empty area after row drag is disabled: |
@ChronosSF Please re-test. |
Closes #5288
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes