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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user