From 99e681c09faa245f9ac06a0a502c3c89a49490cb Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 6 Mar 2017 11:52:07 +0100 Subject: do not collapse long nsfw content --- view/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 5de4aa9a2..db7ad110b 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -695,7 +695,7 @@ function collapseHeight() { $(".wall-item-content, .directory-collapse").each(function() { var orgHeight = $(this).outerHeight(true); if(orgHeight > divmore_height) { - if(! $(this).hasClass('divmore')) { + if(! $(this).hasClass('divmore') && $(this).has('div.no-collapse').length == 0) { // check if we will collapse some content above the visible content and compensate the diff later if($(this).offset().top + divmore_height - $(window).scrollTop() + cDiff - ($(".divgrow-showmore").outerHeight() * i) < 65) { -- cgit v1.2.3