aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-10-25 02:20:49 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-25 02:20:49 +0300
commitdb9ca2fc63ce02031c1cfec2e617a891def62e34 (patch)
treefdc20ceedf58c657ebf12e9d90de36e77300516d /phpBB/styles/prosilver/template
parentfa8d1eb2dccde3a561f95ba1e8b1515e2355ae3a (diff)
downloadforums-db9ca2fc63ce02031c1cfec2e617a891def62e34.tar
forums-db9ca2fc63ce02031c1cfec2e617a891def62e34.tar.gz
forums-db9ca2fc63ce02031c1cfec2e617a891def62e34.tar.bz2
forums-db9ca2fc63ce02031c1cfec2e617a891def62e34.tar.xz
forums-db9ca2fc63ce02031c1cfec2e617a891def62e34.zip
[ticket/11956] Fix IE responsive breadcrumbs and navigation icon
PHPBB3-11956
Diffstat (limited to 'phpBB/styles/prosilver/template')
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index b9604c3248..3b13211362 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -584,11 +584,6 @@ function parse_document(container)
lastWidth = false,
wrapped = false;
- // Test height by setting nowrap
- $this.css('white-space', 'nowrap');
- maxHeight = $this.height() + 1;
- $this.css('white-space', '');
-
// Set tooltips
$this.find('a').each(function() {
var $link = $(this);
@@ -601,6 +596,13 @@ function parse_document(container)
width = $body.width(),
link, i, j;
+ maxHeight = parseInt($this.css('line-height')) | 0;
+ links.each(function() {
+ if ($(this).height() > 0) {
+ maxHeight = Math.max(maxHeight, $(this).outerHeight(true));
+ }
+ });
+
if (height <= maxHeight) {
if (!wrapped || lastWidth === false || lastWidth >= width) {
lastWidth = width;