FIX: Wrench should take into account the custom header height
This commit is contained in:
parent
0f0bff3786
commit
3ac4a40208
|
@ -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;` };
|
||||||
|
|
Loading…
Reference in New Issue