From 0b52eb229825f98bc947d2886f8644448a01d6fd Mon Sep 17 00:00:00 2001 From: cyberalien <cyberalien@gmail.com> Date: Sat, 28 Mar 2015 19:59:38 +0200 Subject: [ticket/13727] Fix JS that resizes breadcrumbs PHPBB3-13727 --- phpBB/styles/prosilver/template/forum_fn.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'phpBB') 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() { -- cgit v1.2.1