Roo/ContentPanel.js
authorAlan Knowles <alan@roojs.com>
Sun, 26 Aug 2012 14:53:06 +0000 (22:53 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 26 Aug 2012 14:53:06 +0000 (22:53 +0800)
Roo/ContentPanel.js

index 508a2e5..5ef181f 100644 (file)
@@ -81,7 +81,11 @@ Roo.ContentPanel = function(el, config, content){
     
     // xtype created footer. - not sure if will work as we normally have to render first..
     if (this.footer && !this.footer.el && this.footer.xtype) {
-        this.footer.container = this.el.createChild();
+        if (!this.wrapEl) {
+            this.wrapEl = this.el.wrap();
+        }
+    
+        this.footer.container = this.el.insertSibling(false, 'after');
          
         this.footer = Roo.factory(this.footer, Roo);