diff --git a/src/ui/grid.js b/src/ui/grid.js index 112538a0a45d4126c5d747804e8d774bfc456ed4..dc672cee499afc693d8e59c407da7bdd5e765b8b 100644 --- a/src/ui/grid.js +++ b/src/ui/grid.js @@ -326,7 +326,7 @@ morpheus.Grid.prototype = { var maxWidth = Math.min(parseInt(gridWidth / 2), 400); var getColumnWidth = function (column) { var w = $header.html(column.name).outerWidth(); - w = Math.max($cell.outerWidth(), w); + if (column.prototypeValue) { $cell.html(column.prototypeValue); w = Math.max($cell.outerWidth(), w); @@ -342,7 +342,7 @@ morpheus.Grid.prototype = { } } column.width = parseInt(Math.min(maxWidth, w)); - + }; var totalWidth = 0; for (var i = 0; i < columns.length; i++) { @@ -362,7 +362,6 @@ morpheus.Grid.prototype = { // shrink last column } - $d.remove(); this.grid.resizeCanvas(); }