updated the rectangle height based on the list cell height