From ebcc8ed46701ec22ac108ec584d4acf73277ec6b Mon Sep 17 00:00:00 2001 From: john Date: Fri, 28 Sep 2018 12:35:37 +0800 Subject: [PATCH] Roo/bootstrap/Modal.js --- Roo/bootstrap/Modal.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index e39f8013d8..57f44249b3 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -276,10 +276,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { if(this.max_width !== 0) { - var w = Math.min( - this.max_width, - Roo.lib.Dom.getViewportWidth(true) - 30 - ); + var w = Math.min(this.max_width, Roo.lib.Dom.getViewportWidth(true) - 30); if(this.height) { this.setSize(w, this.height); -- 2.39.2