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

Merge pull request #34 from lxsang/master

fix scrollbug
This commit is contained in:
Xuan Sang LE 2020-12-09 12:13:41 +01:00 committed by GitHub
commit 291a45cdb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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", target: "quick_talk_comment_thread",
api_uri: "https://chat.iohub.dev/comment", api_uri: "https://chat.iohub.dev/comment",
uri: "<?=url?>", uri: "<?=url?>",
page: 'cover',
author: { author: {
first: "mrsang", first: "mrsang",
last: "iohub.dev" last: "iohub.dev"

View File

@ -200,7 +200,7 @@ class QuickTalk {
container.appendChild(footer); container.appendChild(footer);
at.appendChild(container); at.appendChild(container);
if (this.options.page) { if (this.options.page) {
this.options.page.scrollTop = container.offsetTop; this.options.page.scrollTop = container.offsetTop - this.options.page.offsetTop;
} }
//container.scrollIntoView(); //container.scrollIntoView();