Fix layout calculation for legendItems for Firefox

elem.select("text").style("width") returns "auto" instead of a pixel
width for Firefox because no style is actually applied to these
elements. Use elem.node().getBBox() instead. Tested in Chrome 28,
Safari 5.1.9, and Firefox 22, should be supported in IE 9+ per MSDN.