Legend: Also calc the bbox of the legend when the frame is not drawn. This fixes gh1586