diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index ace60101a6..1ed84594c4 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -491,7 +491,8 @@ function parse_document(container) allLinks = $this.children(), links = allLinks.not(filterSkip), html = '', - filterLastList = links.filter(filterLast); + filterLastList = links.filter(filterLast), + slack = 1; // Vertical slack space (in pixels). Determines how sensitive the script is in determining whether a line-break has occured. if (!persist) { if (links.is('.rightside')) @@ -543,7 +544,7 @@ function parse_document(container) } // Nothing to resize if block's height is not bigger than tallest element's height - if ($this.height() <= (maxHeight + 1)) { + if ($this.height() <= (maxHeight + slack)) { return; } @@ -557,7 +558,7 @@ function parse_document(container) compactMaxHeight = Math.max(compactMaxHeight, $(this).outerHeight(true)); }); - if ($this.height() <= (maxHeight + 1)) { + if ($this.height() <= (maxHeight + slack)) { return; } @@ -605,7 +606,7 @@ function parse_document(container) maxHeight = Math.max(maxHeight, $(this).outerHeight(true)); }); - if ($this.height() <= (maxHeight + 1)) { + if ($this.height() <= (maxHeight + slack)) { menu.children().filter(filterLast).css('display', 'none'); return; }