Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: refresh dimensions when elements loaded from shareable link and blob (#6333)

Aakansha Doshi6aeb18b784d1
diff --git a/src/data/blob.ts b/src/data/blob.ts
index 35c040ef3b..47cff293fa 100644
--- a/src/data/blob.ts
+++ b/src/data/blob.ts
@@ -157,7 +157,7 @@ export const loadSceneOrLibraryFromBlob = async (
},
localAppState,
localElements,
- { repairBindings: true },
+ { repairBindings: true, refreshDimensions: true },
),
};
} else if (isValidLibrary(data)) {
diff --git a/src/excalidraw-app/data/index.ts b/src/excalidraw-app/data/index.ts
index 393c51580d..7f13bc6153 100644
--- a/src/excalidraw-app/data/index.ts
+++ b/src/excalidraw-app/data/index.ts
@@ -263,7 +263,7 @@ export const loadScene = async (
await importFromBackend(id, privateKey),
localDataState?.appState,
localDataState?.elements,
- { repairBindings: true },
+ { repairBindings: true, refreshDimensions: true },
);
} else {
data = restore(localDataState || null, null, null, {