From: john Date: Wed, 26 Sep 2018 03:30:06 +0000 (+0800) Subject: Roo/bootstrap/Modal.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=7f218251484f30eaa2cb895e594f46dffde9bf5d Roo/bootstrap/Modal.js roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 024dd82e17..6b0111eb45 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -272,8 +272,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { var w = Math.min(this.max_width, Roo.lib.Dom.getViewportWidth(true) - 30); // var h = this.height || Roo.lib.Dom.getViewportHeight(true) - 60; this.setSize(w,this.height); - Roo.log(this.bodyEl.getHeight()); - // var view_height = Roo.lib.Dom.getViewportHeight(true) - 60; + Roo.log(this.bodyEl.dom.offsetHeight); + var view_height = Roo.lib.Dom.getViewportHeight(true) - 60; // // if( // ( diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index d36ef0aeb8..516c844c88 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -2833,8 +2833,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { var w = Math.min(this.max_width, Roo.lib.Dom.getViewportWidth(true) - 30); // var h = this.height || Roo.lib.Dom.getViewportHeight(true) - 60; this.setSize(w,this.height); - Roo.log(this.bodyEl.getHeight()); - // var view_height = Roo.lib.Dom.getViewportHeight(true) - 60; + Roo.log(this.bodyEl.dom.offsetHeight); + var view_height = Roo.lib.Dom.getViewportHeight(true) - 60; // // if( // ( diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 7d8035592e..b651c7a102 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -112,16 +112,16 @@ for(var i=0;i