From ad04636073291e5793f39a1bc9e8f1aff1bd0e40 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 5 May 2017 13:07:11 +0300 Subject: [PATCH] fix: firefox and IE scroll sync after deps update --- lib/components/Redoc/redoc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/Redoc/redoc.ts b/lib/components/Redoc/redoc.ts index e8ed112400..303445cc61 100644 --- a/lib/components/Redoc/redoc.ts +++ b/lib/components/Redoc/redoc.ts @@ -78,7 +78,7 @@ export class Redoc extends BaseComponent implements OnInit { //parse options (top level component doesn't support inputs) optionsMgr.parseOptions( this.element ); let scrollParent = detectScollParent( this.element ); - if (scrollParent === DOM.defaultDoc().body) scrollParent = window; + if (scrollParent === (document.scrollingElement || document.body)) scrollParent = window; optionsMgr.options.$scrollParent = scrollParent; this.options = optionsMgr.options; this.lazyTasksService.allSync = !this.options.lazyRendering;