Add offset to topic footer admin menu, to avoid header overlap

This commit is contained in:
Kris 2018-10-19 11:30:11 -04:00
parent 0dd717e641
commit b35c8fb336
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ export default createWidget("topic-admin-menu", {
if (attrs.openUpwards) { if (attrs.openUpwards) {
const documentHeight = $(document).height(); const documentHeight = $(document).height();
const mainHeight = $("#main").height(); const mainHeight = $("#main").height();
let bottom = documentHeight - top - $("#main").offset().top; let bottom = documentHeight - top - 70 - $("#main").offset().top;
if (documentHeight > mainHeight) { if (documentHeight > mainHeight) {
bottom = bottom - (documentHeight - mainHeight) - outerHeight; bottom = bottom - (documentHeight - mainHeight) - outerHeight;