fix: (#276) Issue with stick sidebar when there is content above reDoc (#277)

fixes #276
This commit is contained in:
Primož Pincolič 2017-06-02 08:36:55 +02:00 committed by Roman Hotsiy
parent 75bb68c9ca
commit f50bfb1823

View File

@ -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 {