From 49b2955d51bab2c55f4c2a17392cce2c5bff653e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 29 Nov 2012 17:30:29 +0100 Subject: [PATCH] Forcing a 60px top/bottom margin for dialog overlays --- wcfsetup/install/files/js/WCF.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 3fe37d49c8..994b348687 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7361,7 +7361,11 @@ $.widget('ui.wcfDialog', { } } else if (key == 'closable' || key == 'closeButtonLabel') { if (this.options.closable) { + WCF.DOMNodeInsertedHandler.enable(); + this._closeButton.attr('title', this.options.closeButtonLabel).show().find('span').html(this.options.closeButtonLabel); + + WCF.DOMNodeInsertedHandler.disable(); } else { this._closeButton.hide(); } @@ -7540,7 +7544,7 @@ $.widget('ui.wcfDialog', { // calculate maximum content height var $heightDifference = $containerDimensions.height - $contentDimensions.height; - var $maximumHeight = $windowDimensions.height - $heightDifference; + var $maximumHeight = $windowDimensions.height - $heightDifference - 120; this._content.css({ maxHeight: $maximumHeight + 'px' }); // re-caculate values if container height was previously limited -- 2.20.1