diff options
Diffstat (limited to 'phpBB/styles/prosilver/template')
| -rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 12 |
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; |
