Skip to content

Commit

Permalink
Merge branch 'ni-644-autonavigation' of https://github.com/pharmaR/ri…
Browse files Browse the repository at this point in the history
…skassessment into ni-644-autonavigation
  • Loading branch information
narayanan-iyer-pfizer committed Jun 11, 2024
2 parents d370356 + bca68f9 commit 51dbe07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/mod_code_explorer.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ mod_code_explorer_server <- function(id, selected_pkg, pkgarchive = reactiveVal(
var $target = document.querySelector("#code_explorer-file_viewer")
$target.scrollTop = 0;
$target.scrollTop =$curr_sel.offsetTop -40; ')

}

})
Expand All @@ -222,7 +222,6 @@ mod_code_explorer_server <- function(id, selected_pkg, pkgarchive = reactiveVal(
{
$curr_sel = $highlights_list[$highlights_list.length -1]
search_index.innerHTML = $highlights_list.length + " of " + $highlights_list.length;
}
else
{
$curr_sel = $highlights_list[$index -1]
Expand All @@ -234,7 +233,6 @@ mod_code_explorer_server <- function(id, selected_pkg, pkgarchive = reactiveVal(
$target.scrollTop = $curr_sel.offsetTop - 40;
')

}

})
Expand Down

0 comments on commit 51dbe07

Please sign in to comment.