mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 17:11:14 +01:00
fix: selector for nav scroll
harmony doesn't have topic-header, they all have topic-main-buttons
This commit is contained in:
@@ -662,7 +662,7 @@ define('navigator', [
|
|||||||
|
|
||||||
const postHeight = scrollTo.outerHeight(true);
|
const postHeight = scrollTo.outerHeight(true);
|
||||||
const navbarHeight = components.get('navbar').outerHeight(true) || 0;
|
const navbarHeight = components.get('navbar').outerHeight(true) || 0;
|
||||||
const topicHeaderHeight = $('.topic-header').outerHeight(true) || 0;
|
const topicHeaderHeight = $('.topic-main-buttons').outerHeight(true) || 0;
|
||||||
const viewportHeight = $(window).height();
|
const viewportHeight = $(window).height();
|
||||||
|
|
||||||
// Temporarily disable navigator update on scroll
|
// Temporarily disable navigator update on scroll
|
||||||
|
|||||||
Reference in New Issue
Block a user