From 365dc1848cce228043a1055c7e0ff6065a4ca294 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 1 Jul 2014 02:01:00 +0200 Subject: [PATCH] Preventing overflow: hidden for modal overlays --- .../files/js/3rdParty/redactor/plugins/wmonkeypatch.js | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- 2.20.1