From ee52511397864e52cf0e09df40678b9081270230 Mon Sep 17 00:00:00 2001 From: Corentin MUNOZ Date: Thu, 16 Apr 2026 18:11:22 +0200 Subject: [PATCH] fix(remote): remove fallback render window size If render window size has not been set, do not force resize it, as it defaults to a wrong size. --- src/remote.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/remote.js b/src/remote.js index 12c5c85..4e070b7 100644 --- a/src/remote.js +++ b/src/remote.js @@ -387,8 +387,10 @@ export class RemoteSession { // Bump local mtime and process states to reflect server state try { this.sceneManager.updateObjectsFromStates(); - const [w, h] = this.renderWindowSizes[vtkId] || [10, 10]; - this.sceneManager.setSize(vtkId, w, h); + if (vtkId in this.renderWindowSizes) { + const [w, h] = this.renderWindowSizes[vtkId]; + this.sceneManager.setSize(vtkId, w, h); + } // Prevent state patching with new API if (bindCanvas && this.sceneManager.bindRenderWindow) {