use outerHeight to calculate menu height

This commit is contained in:
scossar 2015-09-08 14:37:07 -07:00
parent 1c90f77d09
commit cb787b99bd
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ export default Ember.Component.extend({
}
$panelBody.height('100%');
this.$().css({ left: "auto", top: (menuTop - 2) + "px", height });
this.$().css({ left: "auto", top: (menuTop) + "px", height });
$('body').removeClass('drop-down-visible');
}

View File

@ -51,5 +51,5 @@ export function headerHeight() {
const $header = $('header.d-header');
const headerOffset = $header.offset();
const headerOffsetTop = (headerOffset) ? headerOffset.top : 0;
return parseInt($header.height() + headerOffsetTop - $(window).scrollTop() + 5);
return parseInt($header.outerHeight() + headerOffsetTop - $(window).scrollTop());
}