From 3ac4a4020819cc369681958edc8d392376e7a0ad Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 3 Jun 2016 17:30:31 -0400 Subject: [PATCH] FIX: Wrench should take into account the custom header height --- .../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 ad0a2a049dd..607acb7eedb 100644 --- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 @@ -73,7 +73,7 @@ export default createWidget('topic-admin-menu', { const position = attrs.fixed ? 'fixed' : 'absolute'; 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;` }; } else { return { style: `position: ${position}; top: ${top}px; left: ${left}px;` };