1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 02:06:32 +02:00

[ticket/11956] Fix IE responsive breadcrumbs and navigation icon

PHPBB3-11956
This commit is contained in:
Vjacheslav Trushkin
2013-10-25 02:20:49 +03:00
parent fa8d1eb2dc
commit db9ca2fc63
2 changed files with 15 additions and 11 deletions

View File

@@ -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;