diff options
| author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-10-19 15:31:09 +0300 |
|---|---|---|
| committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-10-19 15:31:09 +0300 |
| commit | 2e5f9ede412026441f037045b5525fcb13b714e0 (patch) | |
| tree | 3f82936ac9ca8e97e1fb4740d2aa5a20a51fa04a | |
| parent | 71723f64842f253576d3b22752b6fb217017a57d (diff) | |
| download | forums-2e5f9ede412026441f037045b5525fcb13b714e0.tar forums-2e5f9ede412026441f037045b5525fcb13b714e0.tar.gz forums-2e5f9ede412026441f037045b5525fcb13b714e0.tar.bz2 forums-2e5f9ede412026441f037045b5525fcb13b714e0.tar.xz forums-2e5f9ede412026441f037045b5525fcb13b714e0.zip | |
[ticket/11552] Do not collapse empty link lists
PHPBB3-11552
| -rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index f96cc39c17..a6cb378246 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -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)); }); |
