Fix scroll for protocols.io [SCI-8825] (#5774)

This commit is contained in:
ajugo 2023-07-17 10:55:36 +02:00 committed by GitHub
parent 18f383c543
commit 504a0bee62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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