From fd6843eda0fc899ff939c10ea22ca3ef26eab594 Mon Sep 17 00:00:00 2001 From: john Date: Wed, 26 Sep 2018 11:46:51 +0800 Subject: [PATCH] Roo/bootstrap/Modal.js --- Roo/bootstrap/Modal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index d08c050694..ebfd0bfa78 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -277,14 +277,13 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { return; } - var view_height = Roo.lib.Dom.getViewportHeight(true) - 60; var body_childs = this.bodyEl.dom.childNodes; var full_height = this.headerEl.getHeight() + this.footerEl.getHeight(); for(var i = 0; i < body_childs.length; i++) { full_height += body_childs[i].offsetHeight; } - this.setSize(w, Math.min(full_height, view_height)); + this.setSize(w, Math.min(full_height, Roo.lib.Dom.getViewportHeight(true) - 60)); } }, -- 2.39.2