Roo/form/ComboNested.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2020 04:36:30 +0000 (12:36 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2020 04:36:30 +0000 (12:36 +0800)
Roo/form/ComboNested.js

index 2583d92..232af86 100644 (file)
@@ -186,8 +186,11 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
             el.dom.style.height = '';
             var inner = el.dom;
             var h = Math.max(inner.clientHeight, inner.offsetHeight, inner.scrollHeight);
-            el.setHeight(h < this.maxHeight ? 'auto' : this.maxHeight);
-            il.setHeight(h < this.maxHeight ? 'auto' : this.maxHeight);
+            if (i < 1) {
+                el.setHeight(h < this.maxHeight ? 'auto' : this.maxHeight);
+                il.setHeight(h < this.maxHeight ? 'auto' : this.maxHeight);
+            }
+            
             mh = Math.max(el.getHeight(), mh);
         }, this);