diff --git a/.gitlab/templates/index.html.template b/.gitlab/templates/index.html.template
index 92bcae3fb8da75c9239cfdf71d006318f6b23140..78d4eb421791a041365f3f6365961f6cc3bff456 100644
--- a/.gitlab/templates/index.html.template
+++ b/.gitlab/templates/index.html.template
@@ -109,6 +109,7 @@
         canvas.setAttribute('tabindex', '0');
         // grab focus when the render window region receives mouse clicks.
         canvas.addEventListener('click', () => canvas.focus());
+        window.setTimeout(() => window.dispatchEvent(new Event('resize')));
       }
     };
 
diff --git a/.gitlab/templates/index_arguments.html.template b/.gitlab/templates/index_arguments.html.template
index bda7ce402825b179059d5456b6167bcadeb694cc..b858f540cb691c1c44b936549ac6fb3485a6251c 100644
--- a/.gitlab/templates/index_arguments.html.template
+++ b/.gitlab/templates/index_arguments.html.template
@@ -110,6 +110,7 @@
         canvas.setAttribute('tabindex', '0');
         // grab focus when the render window region receives mouse clicks.
         canvas.addEventListener('click', () => canvas.focus());
+        window.setTimeout(() => window.dispatchEvent(new Event('resize')));
       },
       'locateFile': function (path, prefix) {
         if (path.endsWith(".data")) return "https://vtk.org/files/examples/data/" + path;
diff --git a/src/Admin/WASM/index.html.template b/src/Admin/WASM/index.html.template
index 782784b44aa60d5f208f505cc0ac1c5148efbc08..2d4e7d8ebddddf5424c4591d79122fb64cbc5249 100644
--- a/src/Admin/WASM/index.html.template
+++ b/src/Admin/WASM/index.html.template
@@ -91,6 +91,7 @@
         canvas.setAttribute('tabindex', '0');
         // grab focus when the render window region receives mouse clicks.
         canvas.addEventListener('click', () => canvas.focus());
+        window.setTimeout(() => window.dispatchEvent(new Event('resize')));
       }
     };
 
diff --git a/src/Admin/WASM/index_arguments.html.template b/src/Admin/WASM/index_arguments.html.template
index e9b08fec03bc5d9f8a8453097a11a7e383a1ad1e..50e27f53d851d5c1beabaf7d9b48b043d87f5d61 100644
--- a/src/Admin/WASM/index_arguments.html.template
+++ b/src/Admin/WASM/index_arguments.html.template
@@ -92,6 +92,7 @@
         canvas.setAttribute('tabindex', '0');
         // grab focus when the render window region receives mouse clicks.
         canvas.addEventListener('click', () => canvas.focus());
+        window.setTimeout(() => window.dispatchEvent(new Event('resize')));
       }
     };