From: Alexander Ebert Date: Tue, 1 Jul 2014 00:01:00 +0000 (+0200) Subject: Preventing overflow: hidden for modal overlays X-Git-Tag: 2.1.0_Alpha_1~641^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=365dc1848cce228043a1055c7e0ff6065a4ca294;p=GitHub%2FWoltLab%2FWCF.git Preventing overflow: hidden for modal overlays --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js index 7849c99c12..b77f4782db 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js @@ -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) {