X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Picker.html diff --git a/docs/source/Picker.html b/docs/source/Picker.html index f8c8c477..956ed82f 100644 --- a/docs/source/Picker.html +++ b/docs/source/Picker.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.form.field.Picker
  * @extends Ext.form.field.Trigger
  * <p>An abstract class for fields that have a single trigger which opens a "picker" popup below
@@ -21,40 +38,40 @@ Ext.define('Ext.form.field.Picker', {
     alternateClassName: 'Ext.form.Picker',
     requires: ['Ext.util.KeyNav'],
 
-    /**
+    /**
      * @cfg {Boolean} matchFieldWidth
      * Whether the picker dropdown's width should be explicitly set to match the width of the field.
      * Defaults to <tt>true</tt>.
      */
     matchFieldWidth: true,
 
-    /**
+    /**
      * @cfg {String} pickerAlign
      * The {@link Ext.core.Element#alignTo alignment position} with which to align the picker. Defaults
      * to <tt>"tl-bl?"</tt>
      */
     pickerAlign: 'tl-bl?',
 
-    /**
+    /**
      * @cfg {Array} pickerOffset
      * An offset [x,y] to use in addition to the {@link #pickerAlign} when positioning the picker.
      * Defaults to undefined.
      */
 
-    /**
+    /**
      * @cfg {String} openCls
      * A class to be added to the field's {@link #bodyEl} element when the picker is opened. Defaults
      * to 'x-pickerfield-open'.
      */
     openCls: Ext.baseCSSPrefix + 'pickerfield-open',
 
-    /**
+    /**
      * @property isExpanded
      * @type Boolean
      * True if the picker is currently expanded, false if not.
      */
 
-    /**
+    /**
      * @cfg {Boolean} editable <tt>false</tt> to prevent the user from typing text directly into the field;
      * the field can only have its value set via selecting a value from the picker. In this state, the picker
      * can also be opened by clicking directly on the input field itself.
@@ -68,19 +85,19 @@ Ext.define('Ext.form.field.Picker', {
 
         // Custom events
         this.addEvents(
-            /**
+            /**
              * @event expand
              * Fires when the field's picker is expanded.
              * @param {Ext.form.field.Picker} field This field instance
              */
             'expand',
-            /**
+            /**
              * @event collapse
              * Fires when the field's picker is collapsed.
              * @param {Ext.form.field.Picker} field This field instance
              */
             'collapse',
-            /**
+            /**
              * @event select
              * Fires when a value is selected via the picker.
              * @param {Ext.form.field.Picker} field This field instance
@@ -122,7 +139,7 @@ Ext.define('Ext.form.field.Picker', {
     },
 
 
-    /**
+    /**
      * Expand this field's picker dropdown.
      */
     expand: function() {
@@ -146,7 +163,7 @@ Ext.define('Ext.form.field.Picker', {
                 mousedown: collapseIf,
                 scope: me
             });
-
+            Ext.EventManager.onWindowResize(me.alignPicker, me);
             me.fireEvent('expand', me);
             me.onExpand();
         }
@@ -154,7 +171,7 @@ Ext.define('Ext.form.field.Picker', {
 
     onExpand: Ext.emptyFn,
 
-    /**
+    /**
      * @protected
      * Aligns the picker to the
      */
@@ -181,7 +198,7 @@ Ext.define('Ext.form.field.Picker', {
         }
     },
 
-    /**
+    /**
      * Collapse this field's picker dropdown.
      */
     collapse: function() {
@@ -204,7 +221,7 @@ Ext.define('Ext.form.field.Picker', {
             // remove event listeners
             doc.un('mousewheel', collapseIf, me);
             doc.un('mousedown', collapseIf, me);
-
+            Ext.EventManager.removeResizeListener(me.alignPicker, me);
             me.fireEvent('collapse', me);
             me.onCollapse();
         }
@@ -213,7 +230,7 @@ Ext.define('Ext.form.field.Picker', {
     onCollapse: Ext.emptyFn,
 
 
-    /**
+    /**
      * @private
      * Runs on mousewheel and mousedown of doc to check to see if we should collapse the picker
      */
@@ -224,7 +241,7 @@ Ext.define('Ext.form.field.Picker', {
         }
     },
 
-    /**
+    /**
      * Return a reference to the picker component for this field, creating it if necessary by
      * calling {@link #createPicker}.
      * @return {Ext.Component} The picker component
@@ -234,14 +251,14 @@ Ext.define('Ext.form.field.Picker', {
         return me.picker || (me.picker = me.createPicker());
     },
 
-    /**
+    /**
      * Create and return the component to be used as this field's picker. Must be implemented
      * by subclasses of Picker.
      * @return {Ext.Component} The picker component
      */
     createPicker: Ext.emptyFn,
 
-    /**
+    /**
      * Handles the trigger click; by default toggles between expanding and collapsing the
      * picker component.
      */
@@ -268,10 +285,13 @@ Ext.define('Ext.form.field.Picker', {
 
     onDestroy : function(){
         var me = this;
+        Ext.EventManager.removeResizeListener(me.alignPicker, me);
         Ext.destroy(me.picker, me.keyNav);
         me.callParent();
     }
 
 });
 
-
\ No newline at end of file +
+ +