projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6ec288
)
Roo/bootstrap/Column.js
author
Julian Knowles
<julian@roojs.com>
Fri, 24 Jan 2014 08:10:52 +0000
(16:10 +0800)
committer
Julian Knowles
<julian@roojs.com>
Fri, 24 Jan 2014 08:10:52 +0000
(16:10 +0800)
Roo/bootstrap/Column.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Column.js
b/Roo/bootstrap/Column.js
index
bcf41f4
..
81d8250
100644
(file)
--- a/
Roo/bootstrap/Column.js
+++ b/
Roo/bootstrap/Column.js
@@
-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;
}