From 9f24f2af3435ee3b0ee65ccaab0f57c342c76f97 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 17 Sep 2020 13:26:10 +0800 Subject: [PATCH 1/1] 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 6b71f1b988..a445de1dd2 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -102,6 +102,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { cls += ' d' + (v.length ? '-' : '') + v + '-' + t['margin' + (v.length ? '_' : '') + v].length } }); + + // more generic support? if (this.hidden) { cls += ' d-none'; } @@ -148,9 +150,7 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { cfg.cls += this.layoutCls(); - if (this.hidden) { - cfg.cls += ' hidden'; - } + if (this.alert && ["success","info","warning", "danger"].indexOf(this.alert) > -1) { -- 2.39.2