Cache legend item text rect - #730