Skip to content

Commit 9f8496d

Browse files
committed
Ranking: scroll to the correct position when clicking on a selected contestant
1 parent e494acd commit 9f8496d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmsranking/static/Scoreboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ var Scoreboard = new function () {
491491
self.scroll_into_view = function (u_id) {
492492
var $row = $("tr.user[data-user=" + u_id + "]", self.tbody_el);
493493
var $frame = $("#InnerFrame");
494-
var scroll = $row.position().top + $frame.scrollTop() + $row.height() / 2 - $frame.height() / 2;
494+
var scroll = $row.position().top + $row.height() / 2 - $frame.height() / 2;
495495
$frame.scrollTop(scroll);
496496
};
497497
};

0 commit comments

Comments
 (0)