Any SVG that is not being rendered by the browser at the time it is initialized does not have access to the initial positions and sizes of many elements using the getBBox() method. To combat this and similar issues that happen on resize there is a draw() callback on DVG objects that recalculates positions as needed to correct the errors. However, some issues persist.
To recreate, use the test harness page and first deselect and then re-select the "Display" option to trigger the issue:
Any SVG that is not being rendered by the browser at the time it is initialized does not have access to the initial positions and sizes of many elements using the getBBox() method. To combat this and similar issues that happen on resize there is a draw() callback on DVG objects that recalculates positions as needed to correct the errors. However, some issues persist.
To recreate, use the test harness page and first deselect and then re-select the "Display" option to trigger the issue: