aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js6
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));
});