소스 검색

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

* fix: refresh dimensions when elements loaded from shareable link

* refresh text dimensions when loading from file

* remove log
Aakansha Doshi 2 년 전
부모
커밋
6aeb18b784
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/data/blob.ts
  2. 1 1
      src/excalidraw-app/data/index.ts

+ 1 - 1
src/data/blob.ts

@@ -157,7 +157,7 @@ export const loadSceneOrLibraryFromBlob = async (
           },
           localAppState,
           localElements,
-          { repairBindings: true },
+          { repairBindings: true, refreshDimensions: true },
         ),
       };
     } else if (isValidLibrary(data)) {

+ 1 - 1
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, {