Merge pull request #3739 from scossar/use-outerHeight-to-calculate-header-height

FIX: eliminate 3px gap under mobile menu-panel
This commit is contained in:
Robin Ward 2015-09-09 15:10:29 -04:00
commit fe6a4b7d1a
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());
}