From f5b20af7269ddae672d5682b30e6e40c73987d37 Mon Sep 17 00:00:00 2001 From: john Date: Wed, 26 Sep 2018 11:46:18 +0800 Subject: [PATCH] Roo/bootstrap/Modal.js --- Roo/bootstrap/Modal.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 54ae6de120..d08c050694 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -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)); } }, -- 2.39.2