Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the appearance of TOC in interactive guides #3493

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/main/content/_assets/js/openliberty.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
var openliberty = (function() {
setTimeout(() => {
var openliberty = (function() {
$(document).ready(function() {
var scrollAllowed = true;
var prevScrollTop = 0;
Expand Down Expand Up @@ -45,9 +46,9 @@ var openliberty = (function() {

// make toc scroll off of screen at Nice Work section in guides
if (typeof isBackgroundBottomVisible === "function") {
if(isBackgroundBottomVisible()) {
if(isBackgroundBottomVisible()) {
handleTOCScrolling();
}
}
}

prevScrollTop = currScrollTop;
Expand Down Expand Up @@ -179,4 +180,4 @@ var openliberty = (function() {
allowScrolling: allowScrolling,
copy_element_to_clipboard: copy_element_to_clipboard
};
})();
})() },1000);
Loading