placing the element in the middle of the screen instead of the top

This commit is contained in:
Miodec 2021-05-17 15:45:52 +01:00
parent 9db6de484a
commit 10b5eda36f

View file

@ -834,7 +834,7 @@ $(".pageAccount #accountHistoryChart").click((e) => {
loadMoreLines(index);
$([document.documentElement, document.body]).animate(
{
scrollTop: $(`#result-${index}`).offset().top,
scrollTop: $(`#result-${index}`).offset().top - ($(window).height()/2),
},
500
);