fix: firefox and IE scroll sync after deps update

This commit is contained in:
Roman Hotsiy 2017-05-05 13:07:11 +03:00
parent 9f636cc411
commit ad04636073
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) //parse options (top level component doesn't support inputs)
optionsMgr.parseOptions( this.element ); optionsMgr.parseOptions( this.element );
let scrollParent = detectScollParent( 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; optionsMgr.options.$scrollParent = scrollParent;
this.options = optionsMgr.options; this.options = optionsMgr.options;
this.lazyTasksService.allSync = !this.options.lazyRendering; this.lazyTasksService.allSync = !this.options.lazyRendering;