diff --git a/cmsranking/static/Scoreboard.js b/cmsranking/static/Scoreboard.js index 8b003af04f..18756e6839 100644 --- a/cmsranking/static/Scoreboard.js +++ b/cmsranking/static/Scoreboard.js @@ -491,7 +491,7 @@ var Scoreboard = new function () { self.scroll_into_view = function (u_id) { var $row = $("tr.user[data-user=" + u_id + "]", self.tbody_el); var $frame = $("#InnerFrame"); - var scroll = $row.position().top + $frame.scrollTop() + $row.height() / 2 - $frame.height() / 2; + var scroll = $row.position().top + $row.height() / 2 - $frame.height() / 2; $frame.scrollTop(scroll); }; };