1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-19 18:08:21 +01:00

fix scrollbug

This commit is contained in:
lxsang 2020-12-09 12:13:03 +01:00
parent b57e41014f
commit 78c6b50249
2 changed files with 2 additions and 1 deletions

View File

@ -153,6 +153,7 @@ local url = __main__:get("url")
target: "quick_talk_comment_thread",
api_uri: "https://chat.iohub.dev/comment",
uri: "<?=url?>",
page: 'cover',
author: {
first: "mrsang",
last: "iohub.dev"

View File

@ -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();