From: john Date: Fri, 28 Sep 2018 04:29:32 +0000 (+0800) Subject: Roo/bootstrap/Modal.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=f4652442d9a6de80b8a03fdd7594bd0785483f6b Roo/bootstrap/Modal.js roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 4d422aa232..efb8a8af46 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -298,6 +298,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { full_height += body_childs[i].offsetHeight; } + Roo.log(full_height); + this.setSize(w, Math.min(full_height, Roo.lib.Dom.getViewportHeight(true) - 60)); } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 4f8308a0b2..62ece514aa 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -2859,6 +2859,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { full_height += body_childs[i].offsetHeight; } + Roo.log(full_height); + this.setSize(w, Math.min(full_height, Roo.lib.Dom.getViewportHeight(true) - 60)); } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 790623fbcd..9a361c0ab0 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -113,7 +113,7 @@ for(var i=0;i