# Inline styles of minimal height declared for topic-post on mobile

**URL:** <https://meta.discourse.org/t/inline-styles-of-minimal-height-declared-for-topic-post-on-mobile/272566>\
**Category:** Development\
**Created:** [July 23, 2023, 7:06pm UTC](https://meta.discourse.org/t/inline-styles-of-minimal-height-declared-for-topic-post-on-mobile/272566 "2023-07-23T19:06:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [July 25, 2023, 4:32pm UTC](https://meta.discourse.org/t/inline-styles-of-minimal-height-declared-for-topic-post-on-mobile/272566/3 "2023-07-25T16:32:41Z")

</div>

I think this was where the height calculation was added originally, [FIX: Scroll jumping in some dimensions of browser · discourse/discourse@a77f5a7 · GitHub](https://github.com/discourse/discourse/commit/a77f5a75a1b8548b6c9b83afa67ab3aa3c6a70a1) which confirms that it’s meant to help control scroll jumpiness.

For fixing your specific issue, it seems that the height of `.topic-post` is what’s being measured… in your theme is that div taller than the content within for some reason? I wonder why it seems to be miscalculated…

---

_[View the full topic](https://meta.discourse.org/t/inline-styles-of-minimal-height-declared-for-topic-post-on-mobile/272566)._
