Worked around Firefox 26 drawing issue where legend items would not redraw after resizing the chart. Closes #2580.