From fd57865046e8b56b47e4de0aeb3922bae360625d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 2 Jun 2016 12:40:17 -0400 Subject: [PATCH] UX: Mobile topic progress was docking in the wrong place --- .../javascripts/discourse/components/topic-progress.js.es6 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/components/topic-progress.js.es6 b/app/assets/javascripts/discourse/components/topic-progress.js.es6 index 5a769dd5274..97b9f3b540d 100644 --- a/app/assets/javascripts/discourse/components/topic-progress.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-progress.js.es6 @@ -134,10 +134,7 @@ export default Ember.Component.extend({ isDocked = offset >= threshold - windowHeight + topicProgressHeight + composerHeight; } - const $mainButtons = $('#topic-footer-main-buttons'); - const mainPos = $mainButtons.length > 0 ? $mainButtons.offset().top : 0; - const dockPos = $(document).height() - mainPos - topicProgressHeight; - + const dockPos = $(document).height() - $('#topic-bottom').offset().top; if (composerHeight > 0) { if (isDocked) { $topicProgressWrapper.css('bottom', dockPos);