Don't try to take extra size from already too small columns

This commit is contained in:
Nathan Gray 2013-12-11 21:24:17 +00:00
parent 71e62f24f3
commit 362c61e0ae

View File

@ -429,7 +429,11 @@ var et2_dataview_columns = Class.extend({
// Pick the first relative column and use it
for(columnIndex = 0; columnIndex < this.columns.length; columnIndex++)
{
if(this.columns[columnIndex].visibility == ET2_COL_VISIBILITY_INVISIBLE) continue;
if(this.columns[columnIndex].visibility == ET2_COL_VISIBILITY_INVISIBLE ||
this.columnWidths[columnIndex] <= 0)
{
continue;
}
var col = this.columns[columnIndex];
if(col.relativeWidth || !col.fixedWidth)