Skip to content

Commit

Permalink
Fixed overflow of toc
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSamJacob19 committed Nov 20, 2023
1 parent 55b325c commit 190c011
Showing 1 changed file with 5 additions and 4 deletions.
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") {
setTimeout( () => { if(isBackgroundBottomVisible()) {
if(isBackgroundBottomVisible()) {
handleTOCScrolling();
} }, 2000);
}
}

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

0 comments on commit 190c011

Please sign in to comment.