Roo/bootstrap/Table.js
authorjohn <john@roojs.com>
Fri, 12 Oct 2018 03:37:23 +0000 (11:37 +0800)
committerjohn <john@roojs.com>
Fri, 12 Oct 2018 03:37:23 +0000 (11:37 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/Table.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 4da366e..54adb4b 100644 (file)
@@ -1203,6 +1203,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
             
             for(var j = 0; j < w.length; j++) {
                 
+                Roo.log('spliting;;;');
+                
                 var size_cls = w[j].split("-");
                 
                 if(!Number.isInteger(size_cls[1] * 1)) {
index 6a21f93..0227c36 100644 (file)
@@ -7147,6 +7147,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
             
             for(var j = 0; j < w.length; j++) {
                 
+                Roo.log('spliting;;;');
+                
                 var size_cls = w[j].split("-");
                 
                 if(!Number.isInteger(size_cls[1] * 1)) {
@@ -7161,8 +7163,6 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
                     continue;
                 }
                 
-                Roo.log('not replacing??');
-                
                 rows[i].classList.replace(
                     "col-"+size_cls[0]+"-"+this.colModel.config[col_index][size_cls[0]],
                     "col-"+size_cls[0]+"-"+size_cls[1]
index 6cd5927..913c6dd 100644 (file)
@@ -283,7 +283,7 @@ var B=Math.ceil(this.mainBody.getScroll().top);var C=this.mainBody.getHeight();i
 this.CSS.updateRule(D,"display","");this.CSS.updateRule(E,"display","");if(C){this.CSS.updateRule(D,"display","none");this.CSS.updateRule(E,"display","none");}this.onHeaderChange();this.onLoad();},setColumnWidth:function(A,B){if(!this.colModel.config[A]){return;
 }var w=B.split(" ");var C=this.el.dom.getElementsByClassName("x-col-"+A);var D=this.el.dom.getElementsByClassName("x-hcol-"+A);for(var j=0;j<w.length;j++){if(!w[j]){continue;}var E=w[j].split("-");if(!Number.isInteger(E[1]*1)){continue;}if(!this.colModel.config[A][E[0]]){continue;
 }if(!D[0].classList.contains("col-"+E[0]+"-"+this.colModel.config[A][E[0]])){continue;}D[0].classList.replace("col-"+E[0]+"-"+this.colModel.config[A][E[0]],"col-"+E[0]+"-"+E[1]);this.colModel.config[A][E[0]]=E[1];}for(var i=0;i<C.length;i++){for(var j=0;j<w.length;
-j++){var E=w[j].split("-");if(!Number.isInteger(E[1]*1)){continue;}if(!this.colModel.config[A][E[0]]){continue;}if(!C[i].classList.contains("col-"+E[0]+"-"+this.colModel.config[A][E[0]])){continue;}Roo.log('not replacing??');C[i].classList.replace("col-"+E[0]+"-"+this.colModel.config[A][E[0]],"col-"+E[0]+"-"+E[1]);
+j++){Roo.log('spliting;;;');var E=w[j].split("-");if(!Number.isInteger(E[1]*1)){continue;}if(!this.colModel.config[A][E[0]]){continue;}if(!C[i].classList.contains("col-"+E[0]+"-"+this.colModel.config[A][E[0]])){continue;}C[i].classList.replace("col-"+E[0]+"-"+this.colModel.config[A][E[0]],"col-"+E[0]+"-"+E[1]);
 }}}});
 // Roo/bootstrap/TableCell.js
 Roo.bootstrap.TableCell=function(A){Roo.bootstrap.TableCell.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.TableCell,Roo.bootstrap.Component,{html:false,cls:false,tag:false,abbr:false,align:false,axis:false,bgcolor:false,charoff:false,colspan:false,headers:false,height:false,nowrap:false,rowspan:false,scope:false,valign:false,width:false,getAutoCreate:function(){var A=Roo.apply({}