Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / source / CellEditor.html
index c895bbd..76d896c 100644 (file)
 Ext.define('Ext.grid.CellEditor', {
     extend: 'Ext.Editor',
     constructor: function(config) {
+        config = Ext.apply({}, config);
+        
         if (config.field) {
             config.field.monitorTab = false;
         }
-        config.autoSize = {
-            width: 'boundEl'
-        };
-        this.callParent(arguments);
+        if (!Ext.isDefined(config.autoSize)) {
+            config.autoSize = {
+                width: 'boundEl'
+            };
+        }
+        this.callParent([config]);
     },
     
 <span id='Ext-grid-CellEditor-method-onShow'>    /**