automatic resizing (buggy)

- Bug: cannot use innerHTML in svg