Getting rid of scrollbar for infobox

So when I click on my entity, the infobox displays all the content without a scrollbar just the way I want it. However, when I try to select that same entity programmatically with 'viewer.selectedEntity = myEntity', a shortened infobox pops up with a scroll bar.

Is there a way to get rid of the scroll bar and replicate the behavior of a click?

That’s strange. I believe when you click an entity, all the code does is set ‘viewer.selectedEntity = entity’
I’ll take a quick look at this to see if I can find anything.

Thanks!

Hannah