UX: Prevent topic progress bar from overlapping (#12780)

This commit is contained in:
Kris
2021-04-21 22:53:23 -04:00
committed by GitHub
parent 95223938a5
commit e0d17c8d19
5 changed files with 10 additions and 10 deletions
@@ -151,10 +151,7 @@ export default Component.extend({
const $html = $("html");
const offset = window.pageYOffset || $html.scrollTop();
const progressHeight = this.site.mobileView
? 0
: $("#topic-progress").outerHeight();
const maximumOffset = $("#topic-bottom").offset().top + progressHeight;
const maximumOffset = $("#topic-bottom").offset().top;
const windowHeight = $(window).height();
let composerHeight = $("#reply-control").height() || 0;
const isDocked = offset >= maximumOffset - windowHeight + composerHeight;