From: john Date: Fri, 28 Sep 2018 03:47:14 +0000 (+0800) Subject: Roo/bootstrap/Modal.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=34ca055c8b4ee3ae5d1f9d42ba3ff13e007d3118 Roo/bootstrap/Modal.js roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 7d40f7bedd..74e2e3c996 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -271,7 +271,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); - + this.setSize(w, this.height || Roo.lib.Dom.getViewportHeight(true) - 60); // for fix height if(this.height) { this.setSize(w, this.height); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index ceb8e4a852..c1730d17cf 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -2832,7 +2832,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); - + this.setSize(w, this.height || Roo.lib.Dom.getViewportHeight(true) - 60); // for fix height if(this.height) { this.setSize(w, this.height); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index e7f6ed84d7..dcc35d69eb 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -112,10 +112,10 @@ for(var i=0;i