Fixes for Firefox

Firefox doesn't allow you to get the size of SVG elements using
scrollHeight, which is apparently by design

**shakes fist**

This is a better way anyhow as it allows the size to be set using CSS.

TODO: Allow the size of the containing element to be changed and trigger
a redraw dynamically.