Roo/bootstrap/Modal.js
authoredward <edward@roojs.com>
Fri, 19 Feb 2016 07:16:58 +0000 (15:16 +0800)
committeredward <edward@roojs.com>
Fri, 19 Feb 2016 07:16:58 +0000 (15:16 +0800)
Roo/bootstrap/Modal.js

index 16885af..b216a52 100644 (file)
@@ -234,6 +234,10 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
         if (this.allow_close) {
             this.closeEl.on('click', this.hide, this);
         }
+        
+        var _this = this;
+        
+        window.addEventListener("resize", function() { _this.resize(); } );
 
     },
     show : function() {