testing showmore

This commit is contained in:
Mike Macgirvin 2023-07-23 10:33:17 +10:00
parent 1ac6d75257
commit 6c9c783976

View file

@ -898,6 +898,7 @@ function collapseHeight() {
$(".wall-item-content, .directory-collapse").each(function() {
orgHeight = $(this).outerHeight(true);
if(orgHeight > divmore_height) {
$(this).css('max-height', divmore_height + 'px' );
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
@ -924,6 +925,9 @@ function collapseHeight() {
$(this).addClass('divmore');
}
}
else {
$(this).css('max-height', divmore_height + 'px' );
}
});
let collapsedContentHeight = Math.ceil($("#region_2").height());