From d4ebcb4a15fc3e1b4758e084123e052ab6fd1a40 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 Jan 2019 16:02:03 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js --- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 4d4b443b4b..e89b49337f 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -1076,7 +1076,7 @@ Roo.extend(Roo.bootstrap.Column, Roo.bootstrap.Component, { return; } cfg.cls += ' col-' + size + '-' + settings[size] + ( - size == 'xs' ? (' col-' + config[size] ) : '' // bs4 col-{num} replaces col-xs + size == 'xs' ? (' col-' + cfg[size] ) : '' // bs4 col-{num} replaces col-xs ); }); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 6535c88e16..e61bacbc01 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -43,8 +43,8 @@ if(A=='default'){this.el.addClass('btn-default btn-outline-secondary');return;}t // Roo/bootstrap/Column.js Roo.bootstrap.Column=function(A){Roo.bootstrap.Column.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.Column,Roo.bootstrap.Component,{xs:false,sm:false,md:false,lg:false,xsoff:false,smoff:false,mdoff:false,lgoff:false,html:'',offset:0,alert:false,fa:false,icon:false,hidden:false,fasize:1,getAutoCreate:function(){var A=Roo.apply({} ,Roo.bootstrap.Column.superclass.getAutoCreate.call(this));A={tag:'div',cls:'column'};var B=this;['xs','sm','md','lg'].map(function(D){if(B[D+'off']!==false){A.cls+=' col-'+D+'-offset-'+B[D+'off'];}if(B[D]===false){return;}if(!B[D]){A.cls+=' hidden-'+D+' hidden'+D+'-down'; -;return;}A.cls+=' col-'+D+'-'+B[D]+(D=='xs'?(' col-'+config[D]):'');});if(this.hidden){A.cls+=' hidden';}if(this.alert&&["success","info","warning","danger"].indexOf(this.alert)>-1){A.cls+=' alert alert-'+this.alert;}if(this.html.length){A.html=this.html; -}if(this.fa){var C='';if(this.fasize>1){C=' fa-'+this.fasize+'x';}A.html=''+(A.html||'');}if(this.icon){A.html=''+(A.html||'');}return A;}}); +;return;}A.cls+=' col-'+D+'-'+B[D]+(D=='xs'?(' col-'+A[D]):'');});if(this.hidden){A.cls+=' hidden';}if(this.alert&&["success","info","warning","danger"].indexOf(this.alert)>-1){A.cls+=' alert alert-'+this.alert;}if(this.html.length){A.html=this.html;}if(this.fa){var C=''; +if(this.fasize>1){C=' fa-'+this.fasize+'x';}A.html=''+(A.html||'');}if(this.icon){A.html=''+(A.html||'');}return A;}}); // Roo/bootstrap/Container.js Roo.bootstrap.Container=function(A){Roo.bootstrap.Container.superclass.constructor.call(this,A);this.addEvents({"expand":true,"collapse":true,"click":true});};Roo.extend(Roo.bootstrap.Container,Roo.bootstrap.Component,{jumbotron:false,well:'',panel:'',header:'',footer:'',sticky:'',tag:false,alert:false,fa:false,icon:false,expandable:false,rheader:'',expanded:true,clickable:false,getChildContainer:function(){if(!this.el){return false; }if(this.panel.length){return this.el.select('.panel-body',true).first();}return this.el;},getAutoCreate:function(){var A={tag:this.tag||'div',html:'',cls:''};if(this.jumbotron){A.cls='jumbotron';}if(this.sticky.length){var bd=Roo.get(document.body);if(!bd.hasClass('bootstrap-sticky')){bd.addClass('bootstrap-sticky'); -- 2.39.2