Skip to content

Commit

Permalink
fix ofsetheight
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvain Liechti committed Apr 11, 2017
1 parent f9838b0 commit 52410d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
if (this.parentFromTop > this.offsetTop && this.parentFromTop < this.stuckLimit && !this.isSticked) {
this.el.classList.add(this.options.stickClass);
this.options.onStick(this.el);
this.el.style.top = this.spacerHeight + 'px';
this.el.style.top = this.offsetTop + 'px';
}

// ON DESTICK
Expand Down

0 comments on commit 52410d7

Please sign in to comment.