fix for collapsing tabs when there is not enough content