mirror of https://github.com/ColorlibHQ/AdminLTE
Fixed an issue where height becomes NaN when there is no main-header (#1847)
parent
2de87c8ab8
commit
1339932caa
|
@ -84,8 +84,9 @@
|
||||||
$(Selector.layoutBoxed + ' > ' + Selector.wrapper).css('overflow', 'hidden');
|
$(Selector.layoutBoxed + ' > ' + Selector.wrapper).css('overflow', 'hidden');
|
||||||
|
|
||||||
// Get window height and the wrapper height
|
// Get window height and the wrapper height
|
||||||
var footerHeight = $(Selector.mainFooter).outerHeight() || 0;
|
var footerHeight = $(Selector.mainFooter).outerHeight() || 0;
|
||||||
var neg = $(Selector.mainHeader).outerHeight() + footerHeight;
|
var headerHeight = $(Selector.mainHeader).outerHeight() || 0;
|
||||||
|
var neg = headerHeight + footerHeight;
|
||||||
var windowHeight = $(window).height();
|
var windowHeight = $(window).height();
|
||||||
var sidebarHeight = $(Selector.sidebar).height() || 0;
|
var sidebarHeight = $(Selector.sidebar).height() || 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue