firefox fix: get width/height of the svg parent element

if it is not available on the svg element itself
fix firefox overflow problem
fixed bars demo in firefox

have to wrap svg elements in a div, and define width and height on the div, rather than on the svg element