From: john Date: Wed, 26 Sep 2018 03:13:22 +0000 (+0800) Subject: Roo/bootstrap/Modal.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=3c8c2a5e53fc64aea305a283c6ae8f906a999e20 Roo/bootstrap/Modal.js --- diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 59ea3de75c..33d5607a2f 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -270,6 +270,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { if(!this.fitwindow && this.max_width !== 0){ var w = Math.min(this.max_width, Roo.lib.Dom.getViewportWidth(true) - 30); + Roo.log(this.headerEl.getHeight() + this.bodyEl.getHeight() + this.footerEl.getHeight()); var h = this.height || Roo.lib.Dom.getViewportHeight(true) - 60; this.setSize(w,h); }