[ticket/13727] Fix JS that resizes breadcrumbs

PHPBB3-13727
This commit is contained in:
cyberalien 2015-03-28 19:59:38 +02:00
parent 499088b62f
commit 0b52eb2298

View file

@ -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() {