I have a theme that slightly changes the post view on mobile. Now I see the layout gets distorted by min-height declarations that are calculated and injected as inline styles once I scroll around:
I could declare min-heights as unset on the posts. From what I see so far it would fix the layout. But maybe I’m missing something? I don’t understand why these calculations are declared in the first place?
I don’t see these calculations in Discourse by default… is there a theme or component adding them?
Ah I see, they get added on longer topics once additional replies are loaded (and others are removed)
It looks like we add the min-height when posts are cloaked on scroll, so I think we’re grabbing the height so the scroll position isn’t changed when content is removed from the page?
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…