X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=f670fba5b400c3104ee4a7344a7894a173d165b5;hb=3ac3969308fd60ccb370ce49b7ac94878d416ef1;hp=e189f191718ca4c840b20735ca0dbc5addc66ce6;hpb=9aba66d68607ecc5729c40668c8c29e6e8311296;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index e189f19171..f670fba5b4 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -1592,17 +1592,17 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { ['', 'top', 'bottom', 'left', 'right', 'x', 'y' ].forEach(function(v) { // in theory these can do margin_top : ml-xs-3 ??? but we don't support that yet - if (t['margin' + (v.length ? '_' : '') + v].length) { + if (('' + t['margin' + (v.length ? '_' : '') + v]).length) { cls += ' m' + (v.length ? v[0] : '') + '-' + t['margin' + (v.length ? '_' : '') + v]; } - if (t['padding' + (v.length ? '_' : '') + v].length) { + if (('' + t['padding' + (v.length ? '_' : '') + v]).length) { cls += ' p' + (v.length ? v[0] : '') + '-' + t['padding' + (v.length ? '_' : '') + v]; } }); ['', 'xs', 'sm', 'lg', 'xl'].forEach(function(v) { - if (t['display' + (v.length ? '_' : '') + v].length) { - cls += ' d' + (v.length ? '-' : '') + v + '-' + t['margin' + (v.length ? '_' : '') + v].length + if (('' + t['display' + (v.length ? '_' : '') + v]).length) { + cls += ' d' + (v.length ? '-' : '') + v + '-' + t['margin' + (v.length ? '_' : '') + v] } });