projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
78ad545
)
builder.html.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 6 May 2010 09:28:48 +0000
(17:28 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 6 May 2010 09:28:48 +0000
(17:28 +0800)
builder.html.js
patch
|
blob
|
history
diff --git
a/builder.html.js
b/builder.html.js
index
e5f47f9
..
fa8e202
100644
(file)
--- 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);