# Problème de position du défilement pour un sujet avec 1 message non lu

**URL:** <https://meta.discourse.org/t/scroll-position-issue-for-topic-with-1-unread-post/82683>\
**Category:** Bug\
**Created:** [Mars 10, 2018, 3:50 UTC](https://meta.discourse.org/t/scroll-position-issue-for-topic-with-1-unread-post/82683 "2018-03-10T15:50:50Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Mars 13, 2018, 3:11 UTC](https://meta.discourse.org/t/scroll-position-issue-for-topic-with-1-unread-post/82683/17 "2018-03-13T03:11:57Z")

</div>

This is fixed per:

[https://github.com/discourse/discourse/commit/8c1d145f0eaa8539a920c44537c0a64192650e1d](https://github.com/discourse/discourse/commit/8c1d145f0eaa8539a920c44537c0a64192650e1d)

This also removes the 3 times a charm hack so cause I want to see if it is actually needed, can not repro a problem with it.

The issue was actually quite straightforward `.height()` in the new jQuery returns `undefined` if you call it on a non element whereas in the past it returned 0, I guess it is more correct now, but we need to be careful.

I also corrected some calculations that incorrectly accounted for title height and normalized keyboard shortcuts and highlight so they behave in the same way.

---

_[View the full topic](https://meta.discourse.org/t/scroll-position-issue-for-topic-with-1-unread-post/82683)._
