From fdc8659d56981ecfee780a6338313a9bfae90634 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 17 Sep 2020 14:17:15 +0800 Subject: [PATCH] Roo/bootstrap/Card.js --- Roo/bootstrap/Card.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Card.js b/Roo/bootstrap/Card.js index fbc08a91d6..6364b499c7 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -103,16 +103,16 @@ 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) { + if (('' + t['display' + (v.length ? '_' : '') + v]).length) { cls += ' d' + (v.length ? '-' : '') + v + '-' + t['margin' + (v.length ? '_' : '') + v].length } }); -- 2.39.2