try and get ctrl-enter to add a clear all
[roojs1] / Roo / BorderLayout.js
index d36ed96..8228ced 100644 (file)
@@ -11,6 +11,7 @@
 /**
  * @class Roo.BorderLayout
  * @extends Roo.LayoutManager
+ * @children Roo.ContentPanel
  * This class represents a common layout manager used in desktop applications. For screenshots and more details,
  * please see: <br><br>
  * <a href="http://www.jackslocum.com/yui/2006/10/19/cross-browser-web-20-layouts-with-yahoo-ui/">Cross Browser Layouts - Part 1</a><br>
@@ -92,6 +93,22 @@ Roo.BorderLayout = function(container, config){
 };
 
 Roo.extend(Roo.BorderLayout, Roo.LayoutManager, {
+       
+       /**
+        * @cfg {Roo.LayoutRegion} east
+        */
+       /**
+        * @cfg {Roo.LayoutRegion} west
+        */
+       /**
+        * @cfg {Roo.LayoutRegion} north
+        */
+       /**
+        * @cfg {Roo.LayoutRegion} south
+        */
+       /**
+        * @cfg {Roo.LayoutRegion} center
+        */
     /**
      * Creates and adds a new region if it doesn't already exist.
      * @param {String} target The target region key (north, south, east, west or center).
@@ -122,7 +139,9 @@ Roo.extend(Roo.BorderLayout, Roo.LayoutManager, {
      * Performs a layout update.
      */
     layout : function(){
-        if(this.updating) return;
+        if(this.updating) {
+            return;
+        }
         var size = this.getViewSize();
         var w = size.width;
         var h = size.height;
@@ -394,8 +413,7 @@ layout.addxtype({
             delete cfg.items;
         }
         var nb = false;
-        Roo.log('cfg.xtype!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(cfg.xtype);
+        
         switch(cfg.xtype) 
         {
             case 'ContentPanel':  // ContentPanel (el, cfg)
@@ -431,9 +449,6 @@ layout.addxtype({
                 if (region == 'center' && this.active && this.getRegion('center').panels.length < 1) {
                     cfg.background = false;
                 }
-                Roo.log('NestedLayoutPanel');
-                Roo.log(el);
-                Roo.log(clayout);
                 var layout = new Roo.BorderLayout(el, clayout);
                 
                 ret = new Roo[cfg.xtype](layout, cfg); // new panel!!!!!
@@ -613,8 +628,6 @@ Roo.BorderLayout.RegionFactory = {
         if(config.lightweight || config.basic){
             return new Roo.BasicLayoutRegion(mgr, config, target);
         }
-        Roo.log('mgr!!!!!!!!!!!!!!!!!!!');
-        Roo.log(mgr);
         switch(target){
             case "north":
                 return new Roo.NorthLayoutRegion(mgr, config);