help: Fix ordering of code sections work and scrollbar update.

Conceptually, the scrollbar update should be after we've rendered the
code blocks.
This commit is contained in:
Tim Abbott
2018-05-26 10:04:14 -07:00
parent b7f9139ffc
commit c3a81157de

View File

@@ -143,8 +143,8 @@ function scrollToHash(container) {
if (html_map[path]) { if (html_map[path]) {
$(".markdown .content").html(html_map[path]); $(".markdown .content").html(html_map[path]);
markdownPS.update();
render_code_sections(); render_code_sections();
markdownPS.update();
scrollToHash(container); scrollToHash(container);
} else { } else {
loading.name = path; loading.name = path;