fix error when updating datagrid columns

pull/39/head
nightwing 2015-02-17 22:17:56 +04:00
rodzic 3eb81a1c29
commit 13c6c0cd77
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ function ColumnHeader(parentEl, renderer) {
if (col.value && !col.getText)
col.getText = getColumnText;
var w = col.width;
if (w.slice(-1) == "%") {
if (typeof w == "string" && w.slice(-1) == "%") {
col.flex = parseInt(w, 10) / 100;
col.$width = col.width;
} else {
@ -69,6 +69,7 @@ function ColumnHeader(parentEl, renderer) {
col.pixelWidth = 0;
}, this);
columns.$fixedWidth = fixedWidth + "px";
columns.width = null;
provider.columns = columns;
};

Wyświetl plik

@ -14,8 +14,8 @@ oop.inherits(ListData, DataProvider);
(function() {
this.setRoot = function(array) {
this.visibleItems = array
this._signal("change");
this.visibleItems = array || [];
this._signal("change");
};
this.getDataRange = function(rows, columns, callback) {