Roo/bootstrap/Container.js
authoredward <edward@roojs.com>
Fri, 4 Dec 2015 04:33:27 +0000 (12:33 +0800)
committeredward <edward@roojs.com>
Fri, 4 Dec 2015 04:33:27 +0000 (12:33 +0800)
Roo/bootstrap/Container.js

index 9c2e61e..ac2965f 100644 (file)
@@ -122,31 +122,34 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component,  {
             cfg.cls += ' panel panel-' + this.panel;
             cfg.cn = [];
             if (this.header.length) {
-                cfg.cn.push({
-                    cls : 'panel-heading',
-                    cn : []
-                });
+                
+                var h = [];
                 
                 if(this.expandable){
-                    cfg.cn.cn.push({
+                    h.push({
                         tag: 'i',
                         cls: 'fa fa-minus'
                     });
                 }
                 
-                cfg.cn.cn.push({
+                h.push({
                     tag: 'h3',
                     cls : 'panel-title',
                     html : this.header
                 });
                 
                 if(this.rheader){
-                    cfg.cn.cn.push({
+                    h.push({
                         tag: 'span',
                         cls: 'panel-header-right'
                     });
                 }
                 
+                cfg.cn.push({
+                    cls : 'panel-heading',
+                    cn : h
+                });
+                
             }
             
             body = false;