diff options
author | cyberalien <cyberalien@gmail.com> | 2015-03-28 19:59:38 +0200 |
---|---|---|
committer | cyberalien <cyberalien@gmail.com> | 2015-03-28 19:59:38 +0200 |
commit | 0b52eb229825f98bc947d2886f8644448a01d6fd (patch) | |
tree | 1ae6671b793f0fa6fbdf87e3b051a8a950740231 /phpBB/styles | |
parent | 499088b62f686482fd9419be83baef9a7c5ab1c2 (diff) | |
download | forums-0b52eb229825f98bc947d2886f8644448a01d6fd.tar forums-0b52eb229825f98bc947d2886f8644448a01d6fd.tar.gz forums-0b52eb229825f98bc947d2886f8644448a01d6fd.tar.bz2 forums-0b52eb229825f98bc947d2886f8644448a01d6fd.tar.xz forums-0b52eb229825f98bc947d2886f8644448a01d6fd.zip |
[ticket/13727] Fix JS that resizes breadcrumbs
PHPBB3-13727
Diffstat (limited to 'phpBB/styles')
-rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index aabc5679f6..5d17bf50d2 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -410,7 +410,13 @@ function parseDocument($container) { // Function that checks breadcrumbs function check() { var height = $this.height(), - width = $body.width(); + width; + + // Test max-width set in code for .navlinks above + width = parseInt($this.css('max-width')); + if (!width) { + width = $body.width(); + } maxHeight = parseInt($this.css('line-height')); $links.each(function() { |