X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/AbstractPanel.html diff --git a/docs/source/AbstractPanel.html b/docs/source/AbstractPanel.html index b8cdd10e..0ecf8497 100644 --- a/docs/source/AbstractPanel.html +++ b/docs/source/AbstractPanel.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.panel.AbstractPanel
  * @extends Ext.container.Container
  * <p>A base class which provides methods common to Panel classes across the Sencha product range.</p>
@@ -16,26 +33,26 @@ Ext.define('Ext.panel.AbstractPanel', {
 
     /* End Definitions */
 
-    /**
+    /**
      * @cfg {String} baseCls
      * The base CSS class to apply to this panel's element (defaults to <code>'x-panel'</code>).
      */
     baseCls : Ext.baseCSSPrefix + 'panel',
 
-    /**
+    /**
      * @cfg {Number/String} bodyPadding
      * A shortcut for setting a padding style on the body element. The value can either be
      * a number to be applied to all sides, or a normal css string describing padding.
      * Defaults to <code>undefined</code>.
      */
 
-    /**
+    /**
      * @cfg {Boolean} bodyBorder
      * A shortcut to add or remove the border on the body of a panel. This only applies to a panel which has the {@link #frame} configuration set to `true`.
      * Defaults to <code>undefined</code>.
      */
     
-    /**
+    /**
      * @cfg {String/Object/Function} bodyStyle
      * Custom CSS styles to be applied to the panel's body element, which can be supplied as a valid CSS style string,
      * an object containing style property name/value pairs or a function that returns such a string or object.
@@ -49,7 +66,7 @@ bodyStyle: {
      * </code></pre>
      */
     
-    /**
+    /**
      * @cfg {String/Array} bodyCls
      * A CSS class, space-delimited string of classes, or array of classes to be applied to the panel's body element.
      * The following examples are all valid:<pre><code>
@@ -66,7 +83,7 @@ bodyCls: ['foo', 'bar']
     renderTpl: ['<div class="{baseCls}-body<tpl if="bodyCls"> {bodyCls}</tpl> {baseCls}-body-{ui}<tpl if="uiCls"><tpl for="uiCls"> {parent.baseCls}-body-{parent.ui}-{.}</tpl></tpl>"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>></div>'],
 
     // TODO: Move code examples into product-specific files. The code snippet below is Touch only.
-    /**
+    /**
      * @cfg {Object/Array} dockedItems
      * A component or series of components to be added as docked items to this panel.
      * The docked items can be docked to either the top, right, left or bottom of a panel.
@@ -90,7 +107,7 @@ var panel = new Ext.panel.Panel({
         var me = this;
         
         me.addEvents(
-            /**
+            /**
              * @event bodyresize
              * Fires after the Panel has been resized.
              * @param {Ext.panel.Panel} p the Panel which has been resized.
@@ -133,7 +150,7 @@ var panel = new Ext.panel.Panel({
         }
     },
 
-    /**
+    /**
      * Finds a docked component by id, itemId or position. Also see {@link #getDockedItems}
      * @param {String/Number} comp The id, itemId or position of the docked component (see {@link #getComponent} for details)
      * @return {Ext.Component} The docked component (if found)
@@ -145,7 +162,7 @@ var panel = new Ext.panel.Panel({
         return this.dockedItems.get(comp);
     },
 
-    /**
+    /**
      * Attempts a default component lookup (see {@link Ext.container.Container#getComponent}). If the component is not found in the normal
      * items, the dockedItems are searched and the matched component (if any) returned (see {@loink #getDockedComponent}). Note that docked
      * items will only be matched by component id or itemId -- if you pass a numeric index only non-docked child components will be searched.
@@ -161,7 +178,7 @@ var panel = new Ext.panel.Panel({
         return component;
     },
 
-    /**
+    /**
      * Parses the {@link bodyStyle} config if available to create a style string that will be applied to the body element.
      * This also includes {@link bodyPadding} and {@link bodyBorder} if available.
      * @return {String} A CSS style string with body styles, padding and border.
@@ -200,7 +217,7 @@ var panel = new Ext.panel.Panel({
         return styles.length ? styles.join(';') : undefined;
     },
     
-    /**
+    /**
      * Parse the {@link bodyCls} config if available to create a comma-delimited string of 
      * CSS classes to be applied to the body element.
      * @return {String} The CSS class(es)
@@ -220,7 +237,7 @@ var panel = new Ext.panel.Panel({
         return cls.length > 0 ? cls : undefined;
     },
     
-    /**
+    /**
      * Initialized the renderData to be used when rendering the renderTpl.
      * @return {Object} Object with keys and values that are going to be applied to the renderTpl
      * @private
@@ -232,7 +249,7 @@ var panel = new Ext.panel.Panel({
         });
     },
 
-    /**
+    /**
      * Adds docked item(s) to the panel.
      * @param {Object/Array} component The Component or array of components to add. The components
      * must include a 'dock' parameter on each component to indicate where it should be docked ('top', 'right',
@@ -265,7 +282,7 @@ var panel = new Ext.panel.Panel({
             item.onAdded(me, i);
             me.onDockedAdd(item);
         }
-        if (me.rendered) {
+        if (me.rendered && !me.suspendLayout) {
             me.doComponentLayout();
         }
         return items;
@@ -275,7 +292,7 @@ var panel = new Ext.panel.Panel({
     onDockedAdd : Ext.emptyFn,
     onDockedRemove : Ext.emptyFn,
 
-    /**
+    /**
      * Inserts docked item(s) to the panel at the indicated position.
      * @param {Number} pos The index at which the Component will be inserted
      * @param {Object/Array} component. The Component or array of components to add. The components
@@ -286,7 +303,7 @@ var panel = new Ext.panel.Panel({
         this.addDocked(items, pos);
     },
 
-    /**
+    /**
      * Removes the docked item from the panel.
      * @param {Ext.Component} item. The Component to remove.
      * @param {Boolean} autoDestroy (optional) Destroy the component after removal.
@@ -326,7 +343,7 @@ var panel = new Ext.panel.Panel({
         return item;
     },
 
-    /**
+    /**
      * Retrieve an array of all currently docked Components.
      * @param {String} cqSelector A {@link Ext.ComponentQuery ComponentQuery} selector string to filter the returned items.
      * @return {Array} An array of components.
@@ -456,4 +473,6 @@ var panel = new Ext.panel.Panel({
             me.doComponentLayout();
         }
     }
-});
\ No newline at end of file +});
+ +