mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 15:24:57 +08:00
Fix scroll for protocols.io [SCI-8825] (#5774)
This commit is contained in:
parent
18f383c543
commit
504a0bee62
1 changed files with 3 additions and 2 deletions
|
@ -44,7 +44,8 @@ function applyClickCallbackOnProtocolCards() {
|
|||
// Set iframe content
|
||||
iFrame.contents().find('body').html(data.html);
|
||||
|
||||
scrollbox.scrollTo(0);
|
||||
scrollbox.scrollTop(0);
|
||||
|
||||
iFrame.contents().find('body').find('table.htCore')
|
||||
.css('width', '100%')
|
||||
.css('table-layout', 'auto');
|
||||
|
@ -130,7 +131,7 @@ function applySearchCallback() {
|
|||
} else if (data.html) {
|
||||
resetPreviewPanel();
|
||||
$('.empty-text').hide();
|
||||
listWrapper.show().html(data.html).scrollTo(0);
|
||||
listWrapper.show().html(data.html).scrollTop(0);
|
||||
} else {
|
||||
setDefaultViewState();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue