height of the controlbars gets adjusted correctly when their number changes