aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/forum_fn.js
diff options
context:
space:
mode:
authorPayBas <contact@paybas.com>2014-06-24 13:33:38 +0200
committerPayBas <contact@paybas.com>2014-06-25 14:19:02 +0200
commit99065e18ca89c64d79d49d42032f112b2d9130a3 (patch)
tree20d72bdd74e4b88151d588a8bddd5fe4a4331e70 /phpBB/styles/prosilver/template/forum_fn.js
parent5c90b82fdeb84d3c9b685d4ae5db477341de58f6 (diff)
downloadforums-99065e18ca89c64d79d49d42032f112b2d9130a3.tar
forums-99065e18ca89c64d79d49d42032f112b2d9130a3.tar.gz
forums-99065e18ca89c64d79d49d42032f112b2d9130a3.tar.bz2
forums-99065e18ca89c64d79d49d42032f112b2d9130a3.tar.xz
forums-99065e18ca89c64d79d49d42032f112b2d9130a3.zip
[ticket/12662] Use slack variable to determine line-break sensitivity
PHPBB3-12662
Diffstat (limited to 'phpBB/styles/prosilver/template/forum_fn.js')
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js9
1 files changed, 5 insertions, 4 deletions
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 = '<li class="responsive-menu" style="display:none;"><a href="javascript:void(0);" class="responsive-menu-link">&nbsp;</a><div class="dropdown" style="display:none;"><div class="pointer"><div class="pointer-inner" /></div><ul class="dropdown-contents" /></div></li>',
- 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;
}