Don't set height of visualisation according to window height. Just let it be determined by height of SVG.
Naive solution, so presumably has other consequences, but it works for me.