From 1b8fba282f071406e9b21af949415953bda9553b Mon Sep 17 00:00:00 2001 From: john Date: Fri, 28 Sep 2018 12:32:23 +0800 Subject: [PATCH] sync --- Roo/bootstrap/Modal.js | 2 +- roojs-bootstrap-debug.js | 4 ++-- roojs-bootstrap.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index ff85a6698a..b45a4fee77 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -270,7 +270,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { return; } - if(!this.fitwindow && this.max_width !== 0){ + if(this.max_width !== 0) { var w = Math.min(this.max_width, Roo.lib.Dom.getViewportWidth(true) - 30); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 62ece514aa..2c229bb24d 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -2837,10 +2837,12 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { // for fix height if(this.height) { this.setSize(w, this.height); + Roo.log('this height??'); return; } if(!this.fit_content) { + Roo.log('not fitting???'); this.setSize(w, Roo.lib.Dom.getViewportHeight(true) - 60); return; } @@ -2859,8 +2861,6 @@ 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 9a361c0ab0..9f3dce347a 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -112,8 +112,8 @@ for(var i=0;i