mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
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
This commit is contained in:
parent
023313e92f
commit
6aeb18b784
2 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ export const loadSceneOrLibraryFromBlob = async (
|
||||||
},
|
},
|
||||||
localAppState,
|
localAppState,
|
||||||
localElements,
|
localElements,
|
||||||
{ repairBindings: true },
|
{ repairBindings: true, refreshDimensions: true },
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
} else if (isValidLibrary(data)) {
|
} else if (isValidLibrary(data)) {
|
||||||
|
|
|
@ -263,7 +263,7 @@ export const loadScene = async (
|
||||||
await importFromBackend(id, privateKey),
|
await importFromBackend(id, privateKey),
|
||||||
localDataState?.appState,
|
localDataState?.appState,
|
||||||
localDataState?.elements,
|
localDataState?.elements,
|
||||||
{ repairBindings: true },
|
{ repairBindings: true, refreshDimensions: true },
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
data = restore(localDataState || null, null, null, {
|
data = restore(localDataState || null, null, null, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue