Roo/bootstrap/Column.js
authorJulian Knowles <julian@roojs.com>
Fri, 24 Jan 2014 08:10:52 +0000 (16:10 +0800)
committerJulian Knowles <julian@roojs.com>
Fri, 24 Jan 2014 08:10:52 +0000 (16:10 +0800)
Roo/bootstrap/Column.js

index bcf41f4..81d8250 100644 (file)
@@ -29,15 +29,19 @@ Roo.extend(Roo.bootstrap.Column, Roo.bootstrap.Component,  {
     
     offset: 0,
     
-       autoCreate : {
-        cls: 'column'
-    },
-    
     getAutoCreate : function(){
         var cfg = Roo.apply({}, Roo.bootstrap.Column.superclass.getAutoCreate.call(this));
-        cfg.cls += 'col-md-' + this.colspan;
        
+       cfg = {
+           tag: 'div',
+           cls: 'column'
+       }
        
+       ['xs','sm','md','lg'].map(function(size){
+           if (this[size]) {
+               cfg.cls += ' col-'+size+'-'+this[size];
+           }
+       })
        
         return cfg;
     }