Merge branch '2014.11' into 2014.11-develop
authorPhilipp Schüle <p.schuele@metaways.de>
Wed, 13 Jan 2016 12:25:05 +0000 (13:25 +0100)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 13 Jan 2016 12:25:05 +0000 (13:25 +0100)
tine20/Tinebase/js/widgets/form/RecordPickerComboBox.js

index 38129c2..4709012 100644 (file)
@@ -145,8 +145,17 @@ Tine.Tinebase.widgets.form.RecordPickerComboBox = Ext.extend(Ext.ux.form.Clearab
             });
         }
     },
-    
-    
+
+    // TODO re-init this.list if it goes away?
+    // NOTE: we sometimes lose this.list (how?). prevent error by checking existence.
+    doResize: function(w){
+        if(!Ext.isDefined(this.listWidth) && this.list){
+            var lw = Math.max(w, this.minListWidth);
+            this.list.setWidth(lw);
+            this.innerList.setWidth(lw - this.list.getFrameWidth('lr'));
+        }
+    },
+
     /**
      * prepare paging and sort
      *