Diagram sizing to fit in browser