Calculates buttons height before the button is rendered in contactlist renderer.