feat(igxGrid): Apply min/max width constraints on user-set and auto-w…#15449
feat(igxGrid): Apply min/max width constraints on user-set and auto-w…#15449
Conversation
|
@ChronosSF @dkamburov @damyanpetev @kdinev A question arose around one of the existing tests: In that test the scenario is the following: Small width, no user set min-width. Previously this allowed the user to set such a width initially. Resulting in a column with 50px width. However for user interaction, there's a defaultMinWidth, based on the current density: For instance, here: https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/column-resizing#angular-grid-column-resizing-example I believe these defaults had something to do with the different paddings in the cells, which are different for the different densities. Since below a certain threshold with the paddings you can no longer see the content of the cell and it's no longer a meaningful render. @simeonoff might have more insight. So the question is: Should this defaultMinWidth be applied as constraint to the initially set width of the column or not? If it does, this might be a breaking change, since user that have set a small width initially, with no min-width, will render the column with default min instead. For example, user has set 50px width, but since defaultMinWidth is 80, the column will be 80px when rendered. Let me know what you think. |
|
I don't think this |
|
@MayaKirova please add a note to the changelog |
…idths.
Closes #15383
Additional information (check all that apply):
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)