on ajaxcomplete resize bar

This commit is contained in:
wgroeneveld 2020-04-13 15:52:21 +02:00
parent 6ed506cd54
commit 1868391329
1 changed files with 7 additions and 2 deletions

View File

@ -62,14 +62,19 @@ $(function() {
$('.sidebar-game-info').mouseenter(animate).mouseleave(inanimate); $('.sidebar-game-info').mouseenter(animate).mouseleave(inanimate);
}; };
var resizeSidebar = function() {
const height = document.querySelector('.content-column').clientHeight;
$('.sidebar-content').css('height', (height + 50) + 'px');
};
animateActiveGameImagesIfFound(); animateActiveGameImagesIfFound();
setSideBarPlatformHeight(); setSideBarPlatformHeight();
addRandomImageToSideBarMenus(); addRandomImageToSideBarMenus();
enableScrollToTopOnInternalLinks(); enableScrollToTopOnInternalLinks();
enableLightboxOnClickImgInContent(); enableLightboxOnClickImgInContent();
disableResponsiveImagesForInlineLis(); disableResponsiveImagesForInlineLis();
resizeSidebar();
const height = document.querySelector('.content-column').clientHeight; $(document).bind("ajaxComplete", resizeSidebar);
$('.sidebar-content').css('height', (height + 50) + 'px');
}); });