mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
testing showmore
This commit is contained in:
parent
1ac6d75257
commit
6c9c783976
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue