Roo/bootstrap/ComboBox.js
authorEdward <edward@roojs.com>
Tue, 2 Oct 2018 06:58:20 +0000 (14:58 +0800)
committerEdward <edward@roojs.com>
Tue, 2 Oct 2018 06:58:20 +0000 (14:58 +0800)
Roo/bootstrap/ComboBox.js

index 6aae915..0806f98 100644 (file)
@@ -2738,6 +2738,10 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
 
         var listHeight = this.touchViewListGroup.getHeight();
         
+        if(this.mobile_restrict_height && listHeight < bodyHeight){
+            this.touchViewBodyEl.setHeight(listHeight);
+        }
+        
         var _this = this;
         
         if(firstChecked && listHeight > bodyHeight){