Fix sticky sidebar when scroll parent is not window

This commit is contained in:
Roman Hotsiy 2016-01-26 20:26:20 +02:00
parent a8d74e0b6f
commit 6fb7bd0ba6

View File

@ -47,7 +47,7 @@ export default class StickySidebar {
} }
get scrollY() { get scrollY() {
return (this.scrollParent.pageYOffset !== null) ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop; return (this.scrollParent.pageYOffset != null) ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop;
} }
ngOnInit() { ngOnInit() {