From b35c8fb336049f52d9fe341ce8cb4eeee7c1c5b0 Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 19 Oct 2018 11:30:11 -0400 Subject: [PATCH] Add offset to topic footer admin menu, to avoid header overlap --- .../javascripts/discourse/widgets/topic-admin-menu.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 index 7feb7d150f5..4322771a23f 100644 --- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 @@ -112,7 +112,7 @@ export default createWidget("topic-admin-menu", { if (attrs.openUpwards) { const documentHeight = $(document).height(); const mainHeight = $("#main").height(); - let bottom = documentHeight - top - $("#main").offset().top; + let bottom = documentHeight - top - 70 - $("#main").offset().top; if (documentHeight > mainHeight) { bottom = bottom - (documentHeight - mainHeight) - outerHeight;