Skip to content

Commit

Permalink
Fixed an issue where height becomes NaN when there is no main-header (C…
Browse files Browse the repository at this point in the history
  • Loading branch information
akamaya authored and almasaeed2010 committed Jul 14, 2018
1 parent 2de87c8 commit 1339932
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/js/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@
$(Selector.layoutBoxed + ' > ' + Selector.wrapper).css('overflow', 'hidden');

// Get window height and the wrapper height
var footerHeight = $(Selector.mainFooter).outerHeight() || 0;
var neg = $(Selector.mainHeader).outerHeight() + footerHeight;
var footerHeight = $(Selector.mainFooter).outerHeight() || 0;
var headerHeight = $(Selector.mainHeader).outerHeight() || 0;
var neg = headerHeight + footerHeight;
var windowHeight = $(window).height();
var sidebarHeight = $(Selector.sidebar).height() || 0;

Expand Down

0 comments on commit 1339932

Please sign in to comment.