do not collapse long nsfw content
This commit is contained in:
parent
4f5e9d77b2
commit
99e681c09f
@ -695,7 +695,7 @@ function collapseHeight() {
|
|||||||
$(".wall-item-content, .directory-collapse").each(function() {
|
$(".wall-item-content, .directory-collapse").each(function() {
|
||||||
var orgHeight = $(this).outerHeight(true);
|
var orgHeight = $(this).outerHeight(true);
|
||||||
if(orgHeight > divmore_height) {
|
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
|
// 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) {
|
if($(this).offset().top + divmore_height - $(window).scrollTop() + cDiff - ($(".divgrow-showmore").outerHeight() * i) < 65) {
|
||||||
|
Reference in New Issue
Block a user