correct displayed-row calculations for initially hidden tabs