var h_row = this.el.dom.getElementsByClassName("x-hcol-"+col_index);
- h_row.classList.replace(
- "col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]],
- "col-"+size_cls[0]+"-"+size_cls[1]
- );
-
- this.colModel.config[col_index][size_cls[0]] = size_cls[1];
- for(var i = 0; i < rows.length; i++) {
+ for(var j = 0; j < w.length; j++) {
+
+ if(!w[j]) {
+ continue;
+ }
+
+ var size_cls = w[j].split("-");
+
+ if(!Number.isInteger(size_cls[1] * 1)) {
+ continue;
+ }
+
+ if(!this.colModel.config[col_index][size_cls[0]]) {
+ continue;
+ }
- for(var j = 0; w.length; j++) {
+ if(!h_row[0].classList.contains("col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]])) {
+ continue;
+ }
+
+ h_row[0].classList.replace(
+ "col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]],
+ "col-"+size_cls[0]+"-"+size_cls[1]
+ );
+
+ for(var i = 0; i < rows.length; i++) {
var size_cls = w[j].split("-");
continue;
}
+ if(!rows[i].classList.contains("col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]])) {
+ continue;
+ }
+
rows[i].classList.replace(
"col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]],
"col-"+size_cls[0]+"-"+size_cls[1]
);
}
+
+ this.colModel.config[col_index][size_cls[0]] = size_cls[1];
}
}
});
case 18: // alt
break;
default :
- this.hide();
+ this.hidePopup();
}
},