diff --git a/source/Ox.UI/js/List/ColumnList.js b/source/Ox.UI/js/List/ColumnList.js index ad9fc306..4a85fda9 100644 --- a/source/Ox.UI/js/List/ColumnList.js +++ b/source/Ox.UI/js/List/ColumnList.js @@ -32,8 +32,8 @@ Ox.ColumnList = function(options, self) { }) .addClass('OxColumnList'); - self.columnWidths = getColumnWidths(); self.numberOfColumns = self.options.columns.length; + self.columnWidths = getColumnWidths(); self.flatItems = []; self.ids = [{}, {}, {}]; @@ -122,7 +122,7 @@ Ox.ColumnList = function(options, self) { that.setElement(self.$panel); function getColumnWidths() { - return Ox.splitInt(self.options.width, 3); + return Ox.splitInt(self.options.width, self.numberOfColumns); } function getItems(i) {