MDL-47353 gradereport_grader: Only respect fixed headers

Even if the navbar is in a static header, it should only be respected if it
is fixed still.

This issue is a part of the MDL-46658 Task.
This issue is a part of the MDL-25544 Epic.
This commit is contained in:
Andrew Nicols 2014-09-05 09:37:34 +08:00
parent aec2a725a8
commit 1e646afd3c
4 changed files with 5 additions and 5 deletions

View File

@ -488,7 +488,7 @@ FloatingHeaders.prototype = {
} else {
var navbar = Y.one('.navbar');
if (navbar) {
if (navbar && navbar.getComputedStyle('position') === 'fixed') {
// If the navbar exists and isn't fixed, we need to offset the page header to accommodate for it.
this.pageHeaderHeight = navbar.get(OFFSETHEIGHT);
}

View File

@ -488,7 +488,7 @@ FloatingHeaders.prototype = {
} else {
var navbar = Y.one('.navbar');
if (navbar) {
if (navbar && navbar.getComputedStyle('position') === 'fixed') {
// If the navbar exists and isn't fixed, we need to offset the page header to accommodate for it.
this.pageHeaderHeight = navbar.get(OFFSETHEIGHT);
}

View File

@ -345,7 +345,7 @@ FloatingHeaders.prototype = {
} else {
var navbar = Y.one('.navbar');
if (navbar) {
if (navbar && navbar.getComputedStyle('position') === 'fixed') {
// If the navbar exists and isn't fixed, we need to offset the page header to accommodate for it.
this.pageHeaderHeight = navbar.get(OFFSETHEIGHT);
}