Skip to content

Commit 3dbea24

Browse files
committed
copy changes from pull request PolymerElements#548
1 parent f87a664 commit 3dbea24

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

app-header-layout/app-header-layout.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ Polymer({
179179
// the content until the height of the header can be read.
180180
this.$.wrapper.classList.remove('initializing');
181181
// Update scroll target.
182-
header.scrollTarget = this.hasScrollingRegion ?
183-
this.$.contentContainer :
184-
this.ownerDocument.documentElement;
182+
header.scrollTarget =
183+
header.scrollTarget !== header._defaultScrollTarget ? header.scrollTarget
184+
: this.hasScrollingRegion ? this.$.contentContainer
185+
: this.ownerDocument.documentElement;
185186
// Get header height here so that style reads are batched together before
186187
// style writes (i.e. getBoundingClientRect() below).
187188
var headerHeight = header.offsetHeight;

package-lock.json

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)