diff --git a/doc/views/default/layout.ls b/doc/views/default/layout.ls index 1b3fe42..50a0d61 100644 --- a/doc/views/default/layout.ls +++ b/doc/views/default/layout.ls @@ -153,6 +153,7 @@ local url = __main__:get("url") target: "quick_talk_comment_thread", api_uri: "https://chat.iohub.dev/comment", uri: "", + page: 'cover', author: { first: "mrsang", last: "iohub.dev" diff --git a/talk/assets/quicktalk.js b/talk/assets/quicktalk.js index de2f929..4393d87 100644 --- a/talk/assets/quicktalk.js +++ b/talk/assets/quicktalk.js @@ -200,7 +200,7 @@ class QuickTalk { container.appendChild(footer); at.appendChild(container); if (this.options.page) { - this.options.page.scrollTop = container.offsetTop; + this.options.page.scrollTop = container.offsetTop - this.options.page.offsetTop; } //container.scrollIntoView();