Preventing overflow: hidden for modal overlays
authorAlexander Ebert <ebert@woltlab.com>
Tue, 1 Jul 2014 00:01:00 +0000 (02:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 1 Jul 2014 00:01:00 +0000 (02:01 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js

index 7849c99c12dede0722c0c32186a63656bc651812..b77f4782db2d6425cf6705516142830beb03a8ef 100644 (file)
@@ -51,6 +51,13 @@ RedactorPlugins.wmonkeypatch = {
                        $mpModalInit.call(self, title, content, width, callback);
                };
                
+               var $mpModalShowOnDesktop = this.modalShowOnDesktop;
+               this.modalShowOnDesktop = function() {
+                       $mpModalShowOnDesktop.call(self);
+                       
+                       $(document.body).css('overflow', false);
+               };
+               
                // handle indent/outdent
                var $mpButtonActiveObserver = this.buttonActiveObserver;
                this.buttonActiveObserver = function(e, btnName) {