diff options
author | bobzel <zzzman@gmail.com> | 2023-03-05 21:24:09 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-03-05 21:24:09 -0500 |
commit | 0c38e4dc096d6abf82ef11286616856b7119c6e1 (patch) | |
tree | d61cb1b38a246a56905a0b24f6e81562b480934a /src/client/util/Import & Export/DirectoryImportBox.tsx | |
parent | a95043b3fd0325f79cae080bc71e8fe06432bdc3 (diff) |
replace jumpToDocument with showDocument. restructure code to get rid of scrollFocus by adding getView() and fixing focus() and restoreTargetView
Diffstat (limited to 'src/client/util/Import & Export/DirectoryImportBox.tsx')
-rw-r--r-- | src/client/util/Import & Export/DirectoryImportBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/Import & Export/DirectoryImportBox.tsx b/src/client/util/Import & Export/DirectoryImportBox.tsx index 7f0c8a3e8..559958c2b 100644 --- a/src/client/util/Import & Export/DirectoryImportBox.tsx +++ b/src/client/util/Import & Export/DirectoryImportBox.tsx @@ -168,7 +168,7 @@ export class DirectoryImportBox extends React.Component<FieldViewProps> { await GooglePhotos.Export.CollectionToAlbum({ collection: importContainer }); Doc.AddDocToList(Doc.GetProto(parent.props.Document), 'data', importContainer); !this.persistent && this.props.removeDocument && this.props.removeDocument(doc); - DocumentManager.Instance.jumpToDocument(importContainer, { willPanZoom: true }, undefined, []); + DocumentManager.Instance.showDocument(importContainer, { willZoomCentered: true }); } runInAction(() => { |