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-10-10 09:02:57 +08:00
parent aec2a725a8
commit 1e646afd3c
4 changed files with 5 additions and 5 deletions
@@ -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);
}
File diff suppressed because one or more lines are too long
@@ -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);
}
@@ -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);
}