MDL-56768 gradereport_grader: Fix point the user column floats

Need to account for body margin when calculating whether to float the
user column.
This commit is contained in:
Damyon Wiese
2016-11-11 11:34:48 +08:00
parent a044ff57a1
commit 7becb39f63
4 changed files with 4 additions and 4 deletions
@@ -973,7 +973,7 @@ FloatingHeaders.prototype = {
} else {
floatingUserRelativePoint = Y.config.win.pageXOffset + bodyMargin;
floatingUserTriggerPoint = floatingUserRelativePoint + this.dockWidth + bodyMargin;
userFloats = floatingUserTriggerPoint > this.firstUserCellLeft;
userFloats = floatingUserTriggerPoint > this.firstUserCellLeft + bodyMargin;
leftTitleFloats = floatingUserTriggerPoint > (this.firstNonUserCellLeft - this.firstUserCellWidth);
}
File diff suppressed because one or more lines are too long
@@ -972,7 +972,7 @@ FloatingHeaders.prototype = {
} else {
floatingUserRelativePoint = Y.config.win.pageXOffset + bodyMargin;
floatingUserTriggerPoint = floatingUserRelativePoint + this.dockWidth + bodyMargin;
userFloats = floatingUserTriggerPoint > this.firstUserCellLeft;
userFloats = floatingUserTriggerPoint > this.firstUserCellLeft + bodyMargin;
leftTitleFloats = floatingUserTriggerPoint > (this.firstNonUserCellLeft - this.firstUserCellWidth);
}
@@ -829,7 +829,7 @@ FloatingHeaders.prototype = {
} else {
floatingUserRelativePoint = Y.config.win.pageXOffset + bodyMargin;
floatingUserTriggerPoint = floatingUserRelativePoint + this.dockWidth + bodyMargin;
userFloats = floatingUserTriggerPoint > this.firstUserCellLeft;
userFloats = floatingUserTriggerPoint > this.firstUserCellLeft + bodyMargin;
leftTitleFloats = floatingUserTriggerPoint > (this.firstNonUserCellLeft - this.firstUserCellWidth);
}