mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-01-12 22:44:57 +08:00
Update language tabs to recalc toc heights on change
This commit is contained in:
@@ -30,6 +30,8 @@ under the License.
|
||||
}
|
||||
$(".highlight." + language).parent().show();
|
||||
|
||||
global.toc.calculateHeights();
|
||||
|
||||
// scroll to the new location of the position
|
||||
$(window.location.hash).get(0).scrollIntoView(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user