mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FIX: Correct topic timeline position calculation
Fixes calculation for themes with tall custom headers.
This commit is contained in:
parent
74207ef03a
commit
baf8ae604a
@ -58,7 +58,8 @@ export default MountWidget.extend(Docking, {
|
||||
const mainOffset = $("#main").offset();
|
||||
const offsetTop = mainOffset ? mainOffset.top : 0;
|
||||
const topicTop = $(".container.posts").offset().top - offsetTop;
|
||||
const topicBottom = $("#topic-bottom").offset().top;
|
||||
const topicBottom =
|
||||
$("#topic-bottom").offset().top - $("#main-outlet").offset().top;
|
||||
const timeline = this.element.querySelector(".timeline-container");
|
||||
const timelineHeight = (timeline && timeline.offsetHeight) || 400;
|
||||
const footerHeight = $(".timeline-footer-controls").outerHeight(true) || 0;
|
||||
|
Loading…
Reference in New Issue
Block a user