Fix page nav calculation
It appears as if a previous condition (as noted in the former comment) is no longer true. Include the direct parent in computation. Bug: Issue 8810 Change-Id: If7d01d0ade230daa0ec1a9be20cee8d9272d496f
This commit is contained in:
@@ -35,9 +35,7 @@
|
|||||||
_handleBodyScroll() {
|
_handleBodyScroll() {
|
||||||
if (this._headerHeight === undefined) {
|
if (this._headerHeight === undefined) {
|
||||||
let top = this._getOffsetTop(this);
|
let top = this._getOffsetTop(this);
|
||||||
// Don't want to include the element that wraps around the nav, start
|
for (let offsetParent = this.offsetParent;
|
||||||
// with its parent.
|
|
||||||
for (let offsetParent = this._getOffsetParent(this.offsetParent);
|
|
||||||
offsetParent;
|
offsetParent;
|
||||||
offsetParent = this._getOffsetParent(offsetParent)) {
|
offsetParent = this._getOffsetParent(offsetParent)) {
|
||||||
top += this._getOffsetTop(offsetParent);
|
top += this._getOffsetTop(offsetParent);
|
||||||
|
Reference in New Issue
Block a user