Roo/ViewPanel.js
authorChris <chris@roojs.com>
Mon, 21 Oct 2013 09:41:33 +0000 (17:41 +0800)
committerChris <chris@roojs.com>
Mon, 21 Oct 2013 09:41:33 +0000 (17:41 +0800)
Roo/ViewPanel.js

index 882cba3..95491c0 100644 (file)
@@ -25,7 +25,7 @@ Roo.ViewPanel = function(view, config){
         
     this.wrapper.dom.appendChild(view.el.dom);
     
-    Roo.GridPanel.superclass.constructor.call(this, this.wrapper, config);
+    Roo.ViewPanel.superclass.constructor.call(this, this.wrapper, config);
     
     if(this.toolbar){
         this.toolbar.el.insertBefore(this.wrapper.dom.firstChild);
@@ -33,7 +33,7 @@ Roo.ViewPanel = function(view, config){
     // 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.grid.getView().getFooterPanel(true);
+        this.footer.container = this.wrapper.el; // this.getView().getFooterPanel(true);
         this.footer.dataSource = this.grid.dataSource;
         this.footer = Roo.factory(this.footer, Roo);