Skip to content

Commit fedf53e

Browse files
committed
Fix jumpToLine
Closes #230
1 parent 7c3f9b2 commit fedf53e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

static/rustw.out.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7645,7 +7645,7 @@ var SourceView = exports.SourceView = function (_React$Component) {
76457645
function jumpToLine(line) {
76467646
// Jump to the start line. 100 is a fudge so that the start line is not
76477647
// right at the top of the window, which makes it easier to see.
7648-
var y = line * $("#src_line_number_1").height() - 100;
7648+
var y = line * $("#src_line_number_1").outerHeight() - 100;
76497649
var div = document.getElementById("src");
76507650
div.scroll(0, y);
76517651
}

static/rustw.out.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/srcView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export class SourceView extends React.Component {
198198
function jumpToLine(line) {
199199
// Jump to the start line. 100 is a fudge so that the start line is not
200200
// right at the top of the window, which makes it easier to see.
201-
var y = line * $("#src_line_number_1").height() - 100;
201+
var y = line * $("#src_line_number_1").outerHeight() - 100;
202202
let div = document.getElementById("src");
203203
div.scroll(0, y);
204204
}

0 commit comments

Comments
 (0)