Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
don't remove tall class if the scrollHeight is less core-header-panel's
Browse files Browse the repository at this point in the history
height
  • Loading branch information
frankiefu committed Jul 29, 2014
1 parent a9ae343 commit 52d4b5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core-header-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
* @type boolean
* @default false
*/
shadow: false,
shadow: false
},

domReady: function() {
Expand Down Expand Up @@ -200,7 +200,8 @@
(atTop && shadowMode[this.mode] || noShadow[this.mode]));

if (tallMode[this.mode]) {
header.classList.toggle(this.tallClass, atTop);
header.classList.toggle(this.tallClass, atTop ||
main.scrollHeight < this.$.outerContainer.offsetHeight);
}

header.classList.toggle('animate', tallMode[this.mode]);
Expand Down

0 comments on commit 52d4b5f

Please sign in to comment.