fix: (second chance) firefox and IE scroll sync after deps update

This commit is contained in:
Roman Hotsiy 2017-05-05 13:31:24 +03:00
parent df4bb0a17f
commit 50acb986f1
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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 === (document.scrollingElement || document.body)) scrollParent = window;
if (scrollParent === (document.scrollingElement || document.documentElement)) scrollParent = window;
optionsMgr.options.$scrollParent = scrollParent;
this.options = optionsMgr.options;
this.lazyTasksService.allSync = !this.options.lazyRendering;