Skip to content

Commit

Permalink
Add comment for setting default minWidth and maxWidth value.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinchen committed Aug 19, 2015
1 parent f0158a9 commit b16c2b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/core/factories/GridColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ angular.module('ui.grid')
var parseErrorMsg = "Cannot parse column " + name + " '" + minOrMaxWidth + "' for column named '" + colDef.name + "'";

if (!angular.isString(minOrMaxWidth) && !angular.isNumber(minOrMaxWidth)) {
//Sets default minWidth and maxWidth values
self[name] = ((name === 'minWidth') ? 30 : 9000);
} else if (angular.isString(minOrMaxWidth)) {
if (minOrMaxWidth.match(/^(\d+)$/)) {
Expand Down

0 comments on commit b16c2b7

Please sign in to comment.