mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 23:35:00 +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
|
// Set iframe content
|
||||||
iFrame.contents().find('body').html(data.html);
|
iFrame.contents().find('body').html(data.html);
|
||||||
|
|
||||||
scrollbox.scrollTo(0);
|
scrollbox.scrollTop(0);
|
||||||
|
|
||||||
iFrame.contents().find('body').find('table.htCore')
|
iFrame.contents().find('body').find('table.htCore')
|
||||||
.css('width', '100%')
|
.css('width', '100%')
|
||||||
.css('table-layout', 'auto');
|
.css('table-layout', 'auto');
|
||||||
|
@ -130,7 +131,7 @@ function applySearchCallback() {
|
||||||
} else if (data.html) {
|
} else if (data.html) {
|
||||||
resetPreviewPanel();
|
resetPreviewPanel();
|
||||||
$('.empty-text').hide();
|
$('.empty-text').hide();
|
||||||
listWrapper.show().html(data.html).scrollTo(0);
|
listWrapper.show().html(data.html).scrollTop(0);
|
||||||
} else {
|
} else {
|
||||||
setDefaultViewState();
|
setDefaultViewState();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue