aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPayBas <contact@paybas.com>2014-06-07 18:23:32 +0200
committerPayBas <contact@paybas.com>2014-06-25 14:18:58 +0200
commitf41947f726c1081144ba2db994ddac8d1c4860ba (patch)
tree7d9ad6882d56c04ecb7512b44dfd8d398ba3be99
parent4a98d7e46d9108484f7b74a73f519a5af50af9c6 (diff)
downloadforums-f41947f726c1081144ba2db994ddac8d1c4860ba.tar
forums-f41947f726c1081144ba2db994ddac8d1c4860ba.tar.gz
forums-f41947f726c1081144ba2db994ddac8d1c4860ba.tar.bz2
forums-f41947f726c1081144ba2db994ddac8d1c4860ba.tar.xz
forums-f41947f726c1081144ba2db994ddac8d1c4860ba.zip
[ticket/12662] Fix rounding problems when detecting relative height
Firefox and IE round subpixels up, while webkit rounds down. So we have to account for that. PHPBB3-12662
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index 3553165e90..ccd7943045 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -543,7 +543,7 @@ function parse_document(container)
}
// Nothing to resize if block's height is not bigger than tallest element's height
- if ($this.height() <= maxHeight) {
+ if ($this.height() <= (maxHeight + 1)) {
return;
}
@@ -557,7 +557,7 @@ function parse_document(container)
compactMaxHeight = Math.max(compactMaxHeight, $(this).outerHeight(true));
});
- if ($this.height() <= maxHeight) {
+ if ($this.height() <= (maxHeight + 1)) {
return;
}
@@ -595,7 +595,7 @@ function parse_document(container)
item.css('display', '');
$this.addClass('responsive');
- // Try to not hide filtered items #TODO: this does not work in FF and IE of some reason
+ // Try to not hide filtered items
if (filterLastList.length) {
links.not(filterLast).css('display', 'none');
@@ -605,7 +605,7 @@ function parse_document(container)
maxHeight = Math.max(maxHeight, $(this).outerHeight(true));
});
- if ($this.height() <= maxHeight) {
+ if ($this.height() <= (maxHeight + 1)) {
menu.children().filter(filterLast).css('display', 'none');
return;
}