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

This commit is contained in:
Primož Pincolič 2017-05-31 12:15:34 +02:00
parent a08c3b962e
commit f9a21b9554

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 {