mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
Fix progress bar position when theme has header elements outside #main (#6425)
This commit is contained in:
parent
42066e407d
commit
533315a607
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user