if the content has no size and opened is true, we need to make sure to
set the collapsible to auto (previously it was incorrectly set to 0)