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