diff --git a/js/src/forum/components/PostStream.js b/js/src/forum/components/PostStream.js index 21d6ee240..667d27694 100644 --- a/js/src/forum/components/PostStream.js +++ b/js/src/forum/components/PostStream.js @@ -359,9 +359,6 @@ export default class PostStream extends Component { return Promise.all([$container.promise(), this.stream.loadPromise]).then(() => { m.redraw.sync(); - // We want to adjust this again after posts have been loaded in so that - // the height of the scrubber is accurate. - updateScrubberHeight(); // After post data has been loaded in, we will attempt to scroll back // to the top of the requested post (or to the top of the page if the @@ -377,6 +374,10 @@ export default class PostStream extends Component { $(window).scrollTop($(`.PostStream-item[data-index=${index}]`).offset().top - this.getMarginTop()); } + // We want to adjust this again after posts have been loaded in + // and position adjusted so that the scrubber's height is accurate. + updateScrubberHeight(); + this.calculatePosition(); this.stream.paused = false; });