FIX: Wrench should take into account the custom header height

This commit is contained in:
Robin Ward 2016-06-03 17:30:31 -04:00
parent 0f0bff3786
commit 3ac4a40208
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export default createWidget('topic-admin-menu', {
const position = attrs.fixed ? 'fixed' : 'absolute'; const position = attrs.fixed ? 'fixed' : 'absolute';
if (attrs.openUpwards) { if (attrs.openUpwards) {
const bottom = $(document).height() - top; const bottom = $(document).height() - top - $('#main').offset().top;
return { style: `position: ${position}; bottom: ${bottom}px; left: ${left}px;` }; return { style: `position: ${position}; bottom: ${bottom}px; left: ${left}px;` };
} else { } else {
return { style: `position: ${position}; top: ${top}px; left: ${left}px;` }; return { style: `position: ${position}; top: ${top}px; left: ${left}px;` };