From 6fb7bd0ba6880b9030025313d9eddc9a807287f4 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 26 Jan 2016 20:26:20 +0200 Subject: [PATCH] Fix sticky sidebar when scroll parent is not window --- lib/common/components/StickySidebar/sticky-sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/components/StickySidebar/sticky-sidebar.js b/lib/common/components/StickySidebar/sticky-sidebar.js index c0f2cd1b..ad99a264 100644 --- a/lib/common/components/StickySidebar/sticky-sidebar.js +++ b/lib/common/components/StickySidebar/sticky-sidebar.js @@ -47,7 +47,7 @@ export default class StickySidebar { } 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() {