From: john Date: Wed, 26 Sep 2018 03:46:51 +0000 (+0800) Subject: Roo/bootstrap/Modal.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fd6843eda0fc899ff939c10ea22ca3ef26eab594 Roo/bootstrap/Modal.js --- 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)); } },