mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 22:15:24 +02:00
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:
parent
aec2a725a8
commit
1e646afd3c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user