From 20c53a4fd18c55ae7bfbf8df2dd7536523855063 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 Jan 2019 16:01:01 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js Roo/bootstrap/Table.js --- Roo/bootstrap/Table.js | 4 ++-- roojs-bootstrap-debug.js | 6 ++++-- roojs-bootstrap.js | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index d863921b49..fac3930db5 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -657,7 +657,7 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { if (!config[size]) { // 0 = hidden // BS 4 '0' is treated as hide that column and below. - c.cls += ' hidden-' + size + ' hidden' + size + 'down'; + c.cls += ' hidden-' + size + ' hidden' + size + '-down'; return; } @@ -975,7 +975,7 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { if (!config[size]) { // 0 = hidden // BS 4 '0' is treated as hide that column and below. - td.cls += ' hidden-' + size + ' hidden' + size + 'down'; + td.cls += ' hidden-' + size + ' hidden' + size + '-down'; return; } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 36ad016da1..5fb12a1b18 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -1072,10 +1072,12 @@ Roo.extend(Roo.bootstrap.Column, Roo.bootstrap.Component, { } if (!settings[size]) { // 0 = hidden - cfg.cls += ' hidden-' + size; + cfg.cls += ' hidden-' + size + ' hidden' + size + '-down';; return; } - cfg.cls += ' col-' + size + '-' + settings[size]; + cfg.cls += ' col-' + size + '-' + settings[size] + ( + size == 'xs' ? (' col-' + config[size] ) : '' // bs4 col-{num} replaces col-xs + ); }); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 25f65559ce..357724485a 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -42,9 +42,9 @@ this.el.addClass('disabled');},setActive:function(v){this.el[v?'addClass':'remov if(A=='default'){this.el.addClass('btn-default btn-outline-secondary');return;}this.el.addClass('btn-'+B+A);}}); // 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;return; -}A.cls+=' col-'+D+'-'+B[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.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;}}); // 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