So I am checking the the scrollHeight of some dynamically generated content to determine whether or not to include a more button in the content. The user can click the more
I figured out the problem, It had to do with the what I was trying to check after different elements were set to display none. For some reason for 5-8 cells it was checking other content instead of the page I was on and then switching to the current content. Changing some Id's ultimately let me fix it.