From 533315a607a01f9881feba99bcc1ed6cd1130203 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Mon, 1 Oct 2018 20:45:23 -0400 Subject: [PATCH] Fix progress bar position when theme has header elements outside #main (#6425) --- .../javascripts/discourse/components/topic-progress.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/topic-progress.js.es6 b/app/assets/javascripts/discourse/components/topic-progress.js.es6 index 66351564a54..243d45625cd 100644 --- a/app/assets/javascripts/discourse/components/topic-progress.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-progress.js.es6 @@ -162,7 +162,7 @@ export default Ember.Component.extend({ const windowHeight = $(window).height(); const composerHeight = $("#reply-control").height() || 0; const isDocked = offset >= maximumOffset - windowHeight + composerHeight; - const bottom = $("#main").height() - maximumOffset; + const bottom = $("body").height() - maximumOffset; if (composerHeight > 0) { $wrapper.css("bottom", isDocked ? bottom : composerHeight);