From b21779a490765cedc59cc1366f2fbc73d49649ca Mon Sep 17 00:00:00 2001 From: Tijs van der Storm Date: Tue, 3 Oct 2023 12:59:07 +0200 Subject: [PATCH] Call panzoom on actual SVG element. --- src/lang/miniSVG/Bekijken.rsc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lang/miniSVG/Bekijken.rsc b/src/lang/miniSVG/Bekijken.rsc index 5ffd90f..4ceda9a 100644 --- a/src/lang/miniSVG/Bekijken.rsc +++ b/src/lang/miniSVG/Bekijken.rsc @@ -54,8 +54,10 @@ str pagina(str svg) ' \ ' ' \ - ' var svgElement = document.getElementById(\'assenstelsel\'); - ' panzoom(svgElement); + ' document.addEventListener(\"DOMContentLoaded\", function() { + ' var svgElement = document.getElementById(\'yop\'); + ' panzoom(svgElement); + ' }); ' \ ' \ '\"; \ No newline at end of file