Roo/bootstrap/Modal.js
authorjohn <john@roojs.com>
Wed, 26 Sep 2018 03:46:18 +0000 (11:46 +0800)
committerjohn <john@roojs.com>
Wed, 26 Sep 2018 03:46:18 +0000 (11:46 +0800)
Roo/bootstrap/Modal.js

index 54ae6de..d08c050 100644 (file)
@@ -284,10 +284,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
                 full_height += body_childs[i].offsetHeight;
             }
             
-            if(body_height + this.headerEl.getHeight() + this.footerEl.getHeight() > view_height) {
-                this.setSize(w, Math.min);
-            }
-            
+            this.setSize(w, Math.min(full_height, view_height));
         }
         
     },