From f50bfb182344e0c38f082f6d21ecdbe328e46dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Primo=C5=BE=20Pincoli=C4=8D?= <primozweb@gmail.com> Date: Fri, 2 Jun 2017 08:36:55 +0200 Subject: [PATCH] fix: (#276) Issue with stick sidebar when there is content above reDoc (#277) fixes #276 --- lib/shared/components/StickySidebar/sticky-sidebar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/components/StickySidebar/sticky-sidebar.ts b/lib/shared/components/StickySidebar/sticky-sidebar.ts index f4e822af..05700aa0 100644 --- a/lib/shared/components/StickySidebar/sticky-sidebar.ts +++ b/lib/shared/components/StickySidebar/sticky-sidebar.ts @@ -40,7 +40,7 @@ export class StickySidebar implements OnInit, OnDestroy { this.unstick(); } - if ( this.scrollY + window.innerHeight - this.scrollYOffset() >= this.$redocEl.scrollHeight) { + if ( this.scrollY + window.innerHeight - this.scrollYOffset() >= this.$redocEl.scrollHeight && this.$element.parentElement.parentElement.className != 'loading') { this.stickBottom(); stuck = true; } else {