From 603cfb395336c0c18fdab303ed59ab9143f53d5f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 15 Dec 2012 01:56:44 +0100 Subject: [PATCH] Fixed WCF.Popover --- wcfsetup/install/files/js/WCF.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 80a204d323..6694734c2f 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -6251,11 +6251,17 @@ WCF.Popover = Class.extend({ // only update content if element id is active if (this._activeElementID === elementID) { + WCF.DOMNodeInsertedHandler.enable(); + if (animate) { // get current dimensions var $dimensions = this._popoverContent.getDimensions(); // insert new content + this._popoverContent.css({ + height: 'auto', + width: 'auto' + }); this._popoverContent.html(this._data[elementID].content); var $newDimensions = this._popoverContent.getDimensions(); @@ -6271,13 +6277,19 @@ WCF.Popover = Class.extend({ height: $newDimensions.height + 'px', width: $newDimensions.width + 'px' }, 300, function() { + WCF.DOMNodeInsertedHandler.enable(); + self._popoverContent.html(self._data[elementID].content).css({ opacity: 0 }).animate({ opacity: 1 }, 200); + + WCF.DOMNodeInsertedHandler.disable(); }); } else { // insert new content this._popoverContent.html(this._data[elementID].content); } + + WCF.DOMNodeInsertedHandler.disable(); } }, -- 2.20.1