Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Thu, 17 Sep 2020 05:26:10 +0000 (13:26 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 17 Sep 2020 05:26:10 +0000 (13:26 +0800)
Roo/bootstrap/Card.js

index 6b71f1b..a445de1 100644 (file)
@@ -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) {