From fe280796169de9604661d8d42cf4b0d40480e7e0 Mon Sep 17 00:00:00 2001 From: john Date: Fri, 28 Sep 2018 12:18:56 +0800 Subject: [PATCH] Roo/bootstrap/Modal.js --- Roo/bootstrap/Modal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 827d1483ce..a322c15bf0 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -278,6 +278,10 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { return; } + if(!this.fit_content) { + this.setSize(w, Roo.lib.Dom.getViewportHeight(true) - 60); + } + var body_childs = this.bodyEl.dom.childNodes; var full_height = this.headerEl.getHeight() + this.footerEl.getHeight(); for(var i = 0; i < body_childs.length; i++) { -- 2.39.2