update ColumnList
This commit is contained in:
parent
cdc95737e1
commit
edc80d8bbc
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue