Skip to content

Commit 2b58bac

Browse files
fusharveluca93
authored andcommitted
Ranking: scroll to the correct position when clicking on a selected contestant
1 parent 5e214aa commit 2b58bac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmsranking/static/Scoreboard.js

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

0 commit comments

Comments
 (0)