adjust legend body and footer height