You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(GridColumn): Respect minimumColumnSize when a valid minWidth is not present
GridOptions.minimumColumnSize is now used as the default minWidth for all colmumns when it is
provided and it is valid. However, minWidth will still take precedence over minimumColumnSize if
provided.
fix#3941
Copy file name to clipboardExpand all lines: test/unit/core/factories/GridColumn.spec.js
+18-3
Original file line number
Diff line number
Diff line change
@@ -562,9 +562,23 @@ describe('GridColumn factory', function () {
562
562
expect(updateCol(colDef.width)).toThrow();
563
563
});
564
564
565
-
it('should set the value of minWidth to 30 when colDef.minWidth is undefined',invalidMinOrMaxWidthDef(undefined,'minWidth'));
566
-
it('should set the value of minWidth to 30 when colDef.minWidth is null',invalidMinOrMaxWidthDef(null,'minWidth'));
567
-
it('should set the value of minWidth to 30 when colDef.minWidth is an object',invalidMinOrMaxWidthDef({},'minWidth'));
565
+
it('should set the value of minWidth to 30 when colDef.minWidth and options.minimumColumnSize are undefined',invalidMinOrMaxWidthDef(undefined,'minWidth'));
566
+
it('should set the value of minWidth to 30 when colDef.minWidth and options.minimumColumnSize are null',invalidMinOrMaxWidthDef(null,'minWidth'));
567
+
it('should set the value of minWidth to 30 when colDef.minWidth and options.minimumColumnSize are an object',invalidMinOrMaxWidthDef({},'minWidth'));
568
+
569
+
describe('when options.minimumColumnSize is valid',function(){
0 commit comments