summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--core/modules/comment/js/comment-new-indicator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/comment/js/comment-new-indicator.js b/core/modules/comment/js/comment-new-indicator.js
index 72c419e776f2..9b47dd9dd8a1 100644
--- a/core/modules/comment/js/comment-new-indicator.js
+++ b/core/modules/comment/js/comment-new-indicator.js
@@ -72,7 +72,7 @@ function processCommentNewIndicators($placeholders) {
// If the URL points to the first new comment, then scroll to that
// comment.
if (window.location.hash === '#new') {
- window.scrollTo(0, $comment.offset().top - Drupal.displace().top);
+ window.scrollTo(0, $comment.offset().top - Drupal.displace.offsets.top);
}
}
}