Skip to content

Commit

Permalink
Optimized code.
Browse files Browse the repository at this point in the history
  • Loading branch information
geekrainy committed Dec 19, 2017
1 parent f0b3268 commit 09ef52e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/js/src/utils.js
Expand Up @@ -322,6 +322,7 @@ $(document).ready(function () {
var scrollbarWidth = NexT.utils.getScrollbarWidth();
if ($('.sidebar-panel').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) {
$('.site-overview').css('width', 'calc(100% + ' + scrollbarWidth + 'px)');
$('.post-toc').css('width', 'calc(100% + ' + scrollbarWidth + 'px)');
}

// Initialize Sidebar & TOC Height.
Expand Down

0 comments on commit 09ef52e

Please sign in to comment.