UX: Fix menu position with custom header

This commit is contained in:
Robin Ward
2015-08-26 17:21:20 -04:00
parent a659fe3cc3
commit 8fbc8dbae0
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@ export default Ember.Component.extend({
const buttonPanelPos = $buttonPanel.offset();
const myWidth = this.$().width();
const posTop = parseInt(buttonPanelPos.top + $buttonPanel.height()) - $(window).scrollTop();
const posTop = parseInt(buttonPanelPos.top + $buttonPanel.height() - $('header.d-header').offset().top);
const posLeft = parseInt(buttonPanelPos.left + $buttonPanel.width() - myWidth);
return `left: ${posLeft}px; top: ${posTop}px`.htmlSafe();