Updates the height of title panel.