Roo/bootstrap/Table.js
authorAlan Knowles <alan@roojs.com>
Mon, 26 Jul 2021 04:13:59 +0000 (12:13 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 26 Jul 2021 04:13:59 +0000 (12:13 +0800)
Roo/bootstrap/Table.js

index b6fa0e6..e78b1e4 100644 (file)
@@ -420,16 +420,28 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
     
     initCSS : function()
     {
+        
+        
         var cm = this.cm, styles = [];
         this.CSS.removeStyleSheet(this.id + '-cssrules');
         
+        // we can honour xs/sm/md/xl  as widths...
+        // we first have to decide what widht we are currently at...
+        
+        
+        
         for(var i = 0, len = cm.getColumnCount(); i < len; i++) {
             
             var hidden = '';
             if(cm.isHidden(i)){
                 hidden = 'display:none;';
             }
+            // we can honour xs/sm/md/xl ?
+            
+            
             var width = "width:" + (cm.getColumnWidth(i) || 100) + "px;";
+            
+            
             styles.push(
                     '#' , this.id , ' .x-col-' , i, " {\n", cm.config[i].css, width, "\n}\n",
                     '#' , this.id , ' .x-hcol-' , i, " {\n", width, "}\n"