Fix progress bar position when theme has header elements outside #main (#6425)

This commit is contained in:
Penar Musaraj 2018-10-01 20:45:23 -04:00 committed by Sam
parent 42066e407d
commit 533315a607
1 changed files with 1 additions and 1 deletions

View File

@ -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);