From d47f60dd2ce6f465cfc6b57f4882a5fd6ca1f6cc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 29 Sep 2018 10:50:08 +0800 Subject: [PATCH] sync --- Roo/bootstrap/Modal.js | 1 + roojs-bootstrap-debug.js | 5 ++--- roojs-bootstrap.js | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 1bc5c47280..0c2816a0ca 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -289,6 +289,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { } var body_childs = this.bodyEl.dom.childNodes; + // does not seem to give enough space... var full_height = 60 + this.headerEl.getHeight() + this.footerEl.getHeight(); for(var i = 0; i < body_childs.length; i++) { full_height += body_childs[i].offsetHeight; diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 791df17a35..b8c816b811 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -2835,8 +2835,6 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { return; } - Roo.log('testing'); - if(this.max_width !== 0) { var w = Math.min(this.max_width, Roo.lib.Dom.getViewportWidth(true) - 30); @@ -2852,7 +2850,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { } var body_childs = this.bodyEl.dom.childNodes; - var full_height = this.headerEl.getHeight() + this.footerEl.getHeight(); + // does not seem to give enough space... + var full_height = 60 + this.headerEl.getHeight() + this.footerEl.getHeight(); for(var i = 0; i < body_childs.length; i++) { full_height += body_childs[i].offsetHeight; } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index dbb4f963dd..6dcc698ac5 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -112,17 +112,17 @@ for(var i=0;i