The following page jumps when one of the “Books” buttons is selected. The page seems OK using my iPad Mini but jumps when used on the Ubuntu desktop in every browser I have tried.
I was thinking the jumping might be because of the browser redrawing the page after the image dimensions were determined. In which case putting the SVG inside a container element with adequate dimensions should help. But then the benefit of the image being Scalable would be lessened?
Sorry I can’t be much help. When using my iPad I saw no “jump”. Using Windows 10 I saw what I would call “repaint” instead of “jump” though that might be what you mean. Using Firefox in my Ubuntu VM guest, again I saw no “jump”.
I used different browsers in my iPad (basically all Safari) and Windows 10.
Because all browsers in Windows 10, and only in Windows 10, exhibited the repaint that’s where I experimented with different viewBox, width and height values. All I managed to come up with is messing up the display to varying degrees.
My best guess is it’s OS specific though that hypothesis is inconsistent with your experience using Ubuntu vs. mine using Ubuntu (16 LTS) in the VM.