Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Wed, 18 Nov 2020 04:43:59 +0000 (12:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Nov 2020 04:43:59 +0000 (12:43 +0800)
Roo/bootstrap/Card.js

index 618505e..90df3b8 100644 (file)
@@ -254,10 +254,10 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
             cn : []
         };
         var obody = body;
-        if (this.collapsable) {
+        if (this.collapsable || this.rotateable) {
             obody = {
             tag: 'div',
-            cls : 'roo-collapsable collapse ' + (this.collapsed ? '' : 'show'),
+            cls : 'roo-collapsable collapse ' + (this.collapsed || this.rotated ? '' : 'show'),
             cn : [  body ]
             };
         }
@@ -296,7 +296,7 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
         if (this.footer.length) {
            
             cfg.cn.push({
-                cls : 'card-footer',
+                cls : 'card-footer ' + (this.rotated ? 'd-none' : ''),
                 html : this.footer
             });