update ColumnList

This commit is contained in:
rolux 2014-05-06 00:12:55 +02:00
parent cdc95737e1
commit edc80d8bbc

View file

@ -32,8 +32,8 @@ Ox.ColumnList = function(options, self) {
}) })
.addClass('OxColumnList'); .addClass('OxColumnList');
self.columnWidths = getColumnWidths();
self.numberOfColumns = self.options.columns.length; self.numberOfColumns = self.options.columns.length;
self.columnWidths = getColumnWidths();
self.flatItems = []; self.flatItems = [];
self.ids = [{}, {}, {}]; self.ids = [{}, {}, {}];
@ -122,7 +122,7 @@ Ox.ColumnList = function(options, self) {
that.setElement(self.$panel); that.setElement(self.$panel);
function getColumnWidths() { function getColumnWidths() {
return Ox.splitInt(self.options.width, 3); return Ox.splitInt(self.options.width, self.numberOfColumns);
} }
function getItems(i) { function getItems(i) {