mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11552] Do not collapse empty link lists
PHPBB3-11552
This commit is contained in:
parent
71723f6484
commit
2e5f9ede41
1 changed files with 6 additions and 0 deletions
|
@ -579,9 +579,14 @@ function insert_single_user(formId, user)
|
|||
// Find tallest element
|
||||
var maxHeight = 0;
|
||||
links.each(function() {
|
||||
if (!$(this).height()) return;
|
||||
maxHeight = Math.max(maxHeight, $(this).outerHeight(true));
|
||||
});
|
||||
|
||||
if (maxHeight < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Nothing to resize if block's height is not bigger than tallest element's height
|
||||
if ($this.height() <= maxHeight) {
|
||||
toggle.removeClass('visible');
|
||||
|
@ -595,6 +600,7 @@ function insert_single_user(formId, user)
|
|||
|
||||
var compactMaxHeight = 0;
|
||||
links.each(function() {
|
||||
if (!$(this).height()) return;
|
||||
compactMaxHeight = Math.max(compactMaxHeight, $(this).outerHeight(true));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue