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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user