X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/Container3.html diff --git a/docs/source/Container3.html b/docs/source/Container3.html index 6eecbe47..7d92e75c 100644 --- a/docs/source/Container3.html +++ b/docs/source/Container3.html @@ -1,9 +1,25 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
 * @class Ext.layout.container.Container
 * @extends Ext.layout.container.AbstractContainer
-* @private
-* <p>This class is intended to be extended or created via the <tt><b>{@link Ext.container.Container#layout layout}</b></tt>
-* configuration property.  See <tt><b>{@link Ext.container.Container#layout}</b></tt> for additional details.</p>
+* <p>This class is intended to be extended or created via the {@link Ext.container.Container#layout layout}
+* configuration property.  See {@link Ext.container.Container#layout} for additional details.</p>
 */
 Ext.define('Ext.layout.container.Container', {
 
@@ -11,14 +27,14 @@ Ext.define('Ext.layout.container.Container', {
 
     extend: 'Ext.layout.container.AbstractContainer',
     alternateClassName: 'Ext.layout.ContainerLayout',
-    
+
     /* End Definitions */
 
     layoutItem: function(item, box) {
-        box = box || {};
-        if (item.componentLayout.initialized !== true) {
-            this.setItemSize(item, box.width || item.width || undefined, box.height || item.height || undefined);
-            // item.doComponentLayout(box.width || item.width || undefined, box.height || item.height || undefined);
+        if (box) {
+            item.doComponentLayout(box.width, box.height);
+        } else {
+            item.doComponentLayout();
         }
     },
 
@@ -51,12 +67,7 @@ Ext.define('Ext.layout.container.Container', {
         }
     },
 
-    afterLayout: function() {
-        this.owner.afterLayout(arguments);
-        this.callParent(arguments);
-    },
-
-    /**
+    /**
      * @protected
      * Returns all items that are rendered
      * @return {Array} All matching items
@@ -79,7 +90,7 @@ Ext.define('Ext.layout.container.Container', {
         return renderedItems;
     },
 
-    /**
+    /**
      * @protected
      * Returns all items that are both rendered and visible
      * @return {Array} All matching items
@@ -100,4 +111,6 @@ Ext.define('Ext.layout.container.Container', {
 
         return visibleItems;
     }
-});
\ No newline at end of file +});
+ +