Fixed an issue where height becomes NaN when there is no main-header (#1847)

pull/1900/merge
OKAZAKI EITARO 6 years ago committed by Abdullah Almsaeed
parent 2de87c8ab8
commit 1339932caa

@ -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;

Loading…
Cancel
Save