Roo/form/ComboBoxArray.js
authorAlan Knowles <alan@roojs.com>
Wed, 2 Oct 2013 07:57:47 +0000 (15:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 2 Oct 2013 07:57:47 +0000 (15:57 +0800)
Roo/form/ComboBoxArray.js

index 0462a6d..1430f64 100644 (file)
@@ -101,7 +101,10 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
         
         this.combo = Roo.factory(this.combo, Roo.form);
         this.combo.onRender(ct, position);
-        this.combo.onResize(this.combo.width,0);
+        if (typeof(this.combo.width) != 'undefined')) {
+            this.combo.onResize(this.combo.width,0);
+        }
+        
         this.combo.initEvents();
         
         // assigned so form know we need to do this..