X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FViewPanel.js;h=7ca1e2ec45b37dc4b20c4b6f0825133b93974830;hb=61bc45258e16a779856dd2ad0862630b489e4583;hp=8333e92532c7cdc4cc1da00c29463c1bd533867f;hpb=35867bfb30cbe9451cda85fcf21a7201c84ddfcd;p=roojs1 diff --git a/Roo/ViewPanel.js b/Roo/ViewPanel.js index 8333e92532..7ca1e2ec45 100644 --- a/Roo/ViewPanel.js +++ b/Roo/ViewPanel.js @@ -18,12 +18,11 @@ * @param {String/Object} config A string to set only the panel's title, or a config object */ Roo.ViewPanel = function(el, config){ - - + this.wrapper = Roo.DomHelper.append(document.body, // wrapper for IE7 strict & safari scroll issue {tag: "div", cls: "x-layout-grid-wrapper x-layout-inactive-content"}, true); - this.wrapper.dom.appendChild(view.el.dom); + this.wrapper.dom.appendChild(el.dom); Roo.ViewPanel.superclass.constructor.call(this, this.wrapper, config); @@ -38,6 +37,7 @@ Roo.ViewPanel = function(el, config){ this.footer = Roo.factory(this.footer, Roo); } + //??? create teh view??? //grid.monitorWindowResize = false; // turn off autosizing //grid.autoHeight = false; @@ -47,6 +47,8 @@ Roo.ViewPanel = function(el, config){ }; Roo.extend(Roo.ViewPanel, Roo.ContentPanel, { + + autoCreate : true, getId : function(){ return this.view.id; },