Skip to content

Commit

Permalink
copy changes from pull request PolymerElements#548
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinAsher committed Jan 30, 2019
1 parent f87a664 commit 3dbea24
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
7 changes: 4 additions & 3 deletions app-header-layout/app-header-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ Polymer({
// the content until the height of the header can be read.
this.$.wrapper.classList.remove('initializing');
// Update scroll target.
header.scrollTarget = this.hasScrollingRegion ?
this.$.contentContainer :
this.ownerDocument.documentElement;
header.scrollTarget =
header.scrollTarget !== header._defaultScrollTarget ? header.scrollTarget
: this.hasScrollingRegion ? this.$.contentContainer
: this.ownerDocument.documentElement;
// Get header height here so that style reads are batched together before
// style writes (i.e. getBoundingClientRect() below).
var headerHeight = header.offsetHeight;
Expand Down
25 changes: 14 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3dbea24

Please sign in to comment.