Skip to content

Commit

Permalink
Merge pull request theme-next#433 from theme-next/dev
Browse files Browse the repository at this point in the history
Fix for `offset` option. [2]
  • Loading branch information
ivan-nginx authored Oct 3, 2018
2 parents 2bf37c0 + 00c0afc commit c9389f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/js/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ NexT.utils = NexT.$u = {
var sidebarNavHeight = $('.sidebar-nav').css('display') === 'block' ? $('.sidebar-nav').outerHeight(true) : 0;
var sidebarInner = $('.sidebar-inner');
var sidebarPadding = sidebarInner.innerWidth() - sidebarInner.width();
var sidebarOffset = CONFIG.sidebar.offset ? CONFIG.sidebar.offset : 12;
var sidebarSchemePadding = this.isPisces() || this.isGemini()
? (sidebarPadding * 2) + sidebarNavHeight + (CONFIG.sidebar.offset * 2) + this.getSidebarb2tHeight()
? (sidebarPadding * 2) + sidebarNavHeight + sidebarOffset + this.getSidebarb2tHeight()
: (sidebarPadding * 2) + (sidebarNavHeight / 2);
return sidebarSchemePadding;
}
Expand Down

0 comments on commit c9389f3

Please sign in to comment.