Fix sticky sidebar

This commit is contained in:
Roman Hotsiy 2016-01-17 20:00:18 +02:00
parent a9aa44c934
commit d3de7b2e9f

View File

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