From ec92bb329ec21aac77d262afcb67840e3939f5cb Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 6 May 2010 17:28:48 +0800 Subject: [PATCH] builder.html.js --- builder.html.js | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/builder.html.js b/builder.html.js index e5f47f9f8..fa8e202e0 100644 --- a/builder.html.js +++ b/builder.html.js @@ -82,25 +82,17 @@ Builder = { } - return - /* - // force center region.. - cfg.items[0].region = 'center'; - cfg.items[0].background = false; - - this.panelroot = this.layout.addxtype(cfg.items[0]); - - - this.highlightElement(Pman.Tab.BuilderTree.currentNode); + // otherwise we are creating a layout area on the document.. - if (this.panelroot.el) { - - this.panelroot.el.scrollTo('top', this.scroll.top); - this.panelroot.el.scrollTo('left', this.scroll.left); - - } - */ + return + // handles + // contentpanel, nestedlayoutpanel, contentpanel.. etc. + // force center region.. + cfg.region = 'center'; + cfg.background = false; + cfg.el = Roo.get( document.body); + new Roo[cfg.xtype](cfg); -- 2.39.2