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:
parent
b57e41014f
commit
78c6b50249
@ -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"
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user