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:
commit
fe6a4b7d1a
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue