From ee2016bba1f8f7386ce0392be2642b8f25464c86 Mon Sep 17 00:00:00 2001 From: john Date: Fri, 28 Sep 2018 12:22:05 +0800 Subject: [PATCH] Roo/bootstrap/Modal.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/Modal.js | 14 +++++++------- roojs-bootstrap-debug.js | 12 ++++++------ roojs-bootstrap.js | 21 ++++++++++----------- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 05a62ecf43..682d77ac03 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -85,7 +85,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { max_width: 0, - fix_content: false, + fit_content: false, onRender : function(ct, position) { @@ -287,12 +287,12 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { var full_height = this.headerEl.getHeight() + this.footerEl.getHeight(); for(var i = 0; i < body_childs.length; i++) { - if(body_childs[i].classList.indexOf('roo-layout-region') * 1 != -1) { - var layout_childs = body_childs[i].childNodes; - for(var j = 0; j < layout_childs.length; j++) { - - } - } + // if(body_childs[i].classList.indexOf('roo-layout-region') * 1 != -1) { + // var layout_childs = body_childs[i].childNodes; + // for(var j = 0; j < layout_childs.length; j++) { + // + // } + // } full_height += body_childs[i].offsetHeight; } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index d384d96788..f4050804f6 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -2848,12 +2848,12 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { var full_height = this.headerEl.getHeight() + this.footerEl.getHeight(); for(var i = 0; i < body_childs.length; i++) { - if(body_childs[i].classList.indexOf('roo-layout-region') * 1 != -1) { - var layout_childs = body_childs[i].childNodes; - for(var j = 0; j < layout_childs.length; j++) { - - } - } + // if(body_childs[i].classList.indexOf('roo-layout-region') * 1 != -1) { + // var layout_childs = body_childs[i].childNodes; + // for(var j = 0; j < layout_childs.length; j++) { + // + // } + // } full_height += body_childs[i].offsetHeight; } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index e624873b26..aa2da3dcaa 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -113,17 +113,16 @@ for(var i=0;i