mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 10:59:03 +00:00
Fixed rendering of documentation widgets if no active item on page
This commit is contained in:
@@ -85,6 +85,8 @@ $(function(){
|
||||
|
||||
var moveItemSlider = function () {
|
||||
var activeItem = $(".js-item-slider--wrapper .js-item.js-active");
|
||||
if (activeItem.empty()) return;
|
||||
|
||||
var activeItemPosition = activeItem.position();
|
||||
var activeItemOffset = activeItemPosition.left;
|
||||
var activeItemWidth = activeItem.outerWidth();
|
||||
@@ -105,6 +107,8 @@ $(function(){
|
||||
$(this).siblings().removeClass("js-active");
|
||||
moveItemSlider();
|
||||
});
|
||||
|
||||
new Spring.ProjectDocumentationWidget();
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user